]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Tooling/clang-check-strip-o.cpp
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / Tooling / clang-check-strip-o.cpp
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 // RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp -o foo -ofoo","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
4 // RUN: cp "%s" "%t/test.cpp"
5 // RUN: not clang-check -p "%t" "%t/test.cpp" -extra-arg=-v 2>&1|FileCheck %s
6 // FIXME: Make the above easier.
7
8 // CHECK: Invocation
9 // CHECK-NOT: {{ -v}}
10 // CHECK: C++ requires
11 invalid;