blob: 2c395043bf052f828a05c31d196cbd30bf6126c8 [file] [log] [blame]
Arnaud A. de Grandmaison4187df52012-07-10 16:56:35 +00001// RUN: rm -rf %t
2// RUN: mkdir -p %t/abc/def
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: clang-check -p "%t/abc/def" "%t/test.cpp" 2>&1|FileCheck %s
6// FIXME: Make the above easier.
7
8// CHECK: C++ requires
9invalid;
10
11// REQUIRES: shell