[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Tooling / clang-check-strip-o.cpp
blob156f15a0e60bd808f70cb8b2ffadef1711edbbf2
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.
8 // CHECK: Invocation
9 // CHECK-NOT: {{ -v}}
10 // CHECK: a type specifier is required
11 invalid;