2012-04-10 03:10:04 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2012-05-24 06:24:27 +08:00
|
|
|
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
|
2012-04-10 03:10:04 +08:00
|
|
|
// RUN: cp "%s" "%t/test.cpp"
|
|
|
|
// RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s
|
|
|
|
// FIXME: Make the above easier.
|
|
|
|
|
2012-04-10 20:12:33 +08:00
|
|
|
// CHECK: C++ requires
|
|
|
|
invalid;
|
2012-04-10 03:10:04 +08:00
|
|
|
|
2012-05-17 01:37:56 +08:00
|
|
|
// REQUIRES: shell
|