Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Tooling / auto-detect-from-source-parent.cpp
blob45075f4cd06e8a53b74e093c81e445a7af962417
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t/abc/def/ijk/qwe
3 // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/abc/def/ijk/qwe/test.cpp\",\"file\":\"%/t/abc/def/ijk/qwe/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
4 // RUN: cp "%s" "%t/abc/def/ijk/qwe/test.cpp"
5 // RUN: not clang-check "%t/abc/def/ijk/qwe/test.cpp" 2>&1 | FileCheck %s
7 // CHECK: a type specifier is required
8 invalid;