blob: cb943442037d81a63cc4ab466d042a71be415600 [file] [log] [blame]
Manuel Klimek16dc2612012-04-09 19:10:04 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
Kaelyn Uhrainedec2ee2012-04-10 22:27:27 +00003// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" > %t/compile_commands.json
Manuel Klimek16dc2612012-04-09 19:10:04 +00004// RUN: cp "%s" "%t/test.cpp"
5// RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s
6// 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
11// FIXME: JSON doesn't like path separator '\', on Win32 hosts.
12// FIXME: clang-check doesn't like gcc driver on cygming.
13// XFAIL: cygwin,mingw32,win32