2012-04-14 14:01:31 +00:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2012-08-15 20:02:54 +00:00
|
|
|
// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
|
2012-04-14 14:01:31 +00:00
|
|
|
// RUN: cp "%s" "%t/test.cpp"
|
2013-12-22 00:07:40 +00:00
|
|
|
// RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
|
2012-04-14 14:01:31 +00:00
|
|
|
// FIXME: Make the above easier.
|
|
|
|
|
|
|
|
// CHECK: C++ requires
|
|
|
|
invalid;
|