1f4a2713aSLionel Sambuc // RUN: rm -rf %t 2f4a2713aSLionel Sambuc // RUN: mkdir -p %t/abc/def 3*0a6a1f1dSLionel Sambuc // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json 4f4a2713aSLionel Sambuc // RUN: cp "%s" "%t/test.cpp" 5f4a2713aSLionel Sambuc // RUN: not clang-check -p "%t/abc/def" "%t/test.cpp" 2>&1|FileCheck %s 6f4a2713aSLionel Sambuc // FIXME: Make the above easier. 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc // CHECK: C++ requires 9f4a2713aSLionel Sambuc invalid; 10