1 // RUN: rm -rf %t 2 // RUN: mkdir %t 3 // RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp","file":"%t/test.cpp"}]' > %t/compile_commands.json 4 // RUN: cp "%s" "%t/test.cpp" 5 // RUN: clang-check "%t" "%t/test.cpp" 2>&1|FileCheck %s 6 // FIXME: Make the above easier. 7 8 // CHECK: C++ requires 9 invalid; 10 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 14