blob: 374c579245b721028c1cb662a878f76c935d23f7 [file] [log] [blame]
Manuel Klimek16dc2612012-04-09 19:10:04 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
NAKAMURA Takumi8cf93ec2012-05-23 22:24:27 +00003// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
Manuel Klimek16dc2612012-04-09 19:10:04 +00004// RUN: cp "%s" "%t/test.cpp"
Manuel Klimek8fa2fb82012-07-10 13:10:51 +00005// RUN: PWD="%t" clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s
Manuel Klimek16dc2612012-04-09 19:10:04 +00006// FIXME: Make the above easier.
7
Manuel Klimek970b2262012-04-10 12:12:33 +00008// CHECK: C++ requires
9invalid;
Manuel Klimek16dc2612012-04-09 19:10:04 +000010
NAKAMURA Takumibe8becc2012-05-16 17:37:56 +000011// REQUIRES: shell