2012-07-11 00:56:35 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir -p %t/abc/def
|
2014-11-04 21:32:17 +08:00
|
|
|
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
|
2012-07-11 00:56:35 +08:00
|
|
|
// RUN: cp "%s" "%t/test.cpp"
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not clang-check -p "%t/abc/def" "%t/test.cpp" 2>&1|FileCheck %s
|
2012-07-11 00:56:35 +08:00
|
|
|
// FIXME: Make the above easier.
|
|
|
|
|
|
|
|
// CHECK: C++ requires
|
|
|
|
invalid;
|