[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Tooling / clang-check-rel-path.cpp
blob5ea28598cc0d7c0109eb5cef569ea7218ad73d59
1 // This block test a compilation database with files relative to the directory
2 // RUN: rm -rf %t
3 // RUN: mkdir %t
4 // RUN: echo '[{"directory":"%t","command":"clang++ -c test.cpp","file":"test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
5 // RUN: cp "%s" "%t/test.cpp"
6 // RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
7 // FIXME: Make the above easier.
9 // CHECK: a type specifier is required
10 invalid;