xref: /minix3/external/bsd/llvm/dist/clang/test/Tooling/auto-detect-from-source.cpp (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
4 // RUN: cp "%s" "%t/test.cpp"
5 // RUN: not clang-check "%t/test.cpp" 2>&1 | FileCheck %s
6 
7 // CHECK: C++ requires
8 invalid;
9 
10 // REQUIRES: shell
11 // PR15590
12 // XFAIL: win64
13