diff options
Diffstat (limited to 'test/Tooling/clang-diff-args.test')
-rw-r--r-- | test/Tooling/clang-diff-args.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Tooling/clang-diff-args.test b/test/Tooling/clang-diff-args.test new file mode 100644 index 000000000000..a4ce1ea92508 --- /dev/null +++ b/test/Tooling/clang-diff-args.test @@ -0,0 +1,12 @@ +RUN: echo a > %t.cpp + +CHECK: unknown type name 'X' + +check adding compiler cflags +RUN: clang-diff -ast-dump -extra-arg=-Da=X %t.cpp -- 2>&1 | FileCheck %s +RUN: clang-diff -ast-dump -extra-arg-before=-Da=X %t.cpp -- 2>&1 | FileCheck %s +RUN: clang-diff -ast-dump %t.cpp -- 2>&1 -Da=X | FileCheck %s + +NOMATCH-CHECK-NOT: {{.}} +RUN: clang-diff %S/clang-diff-ast.cpp %S/clang-diff-ast.cpp -- 2>&1 -std=c++11 \ +RUN: | FileCheck -check-prefix=NOMATCH-CHECK -allow-empty %s |