2017-08-19 00:34:22 +08:00
|
|
|
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
|
2017-08-19 20:04:04 +08:00
|
|
|
|
|
|
|
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
|