blob: b84f3fede888473e92e19306b75a029f2f2aa17a [file] [log] [blame]
Arnaud A. de Grandmaison617f5262012-07-10 16:56:35 +00001// RUN: rm -rf %t
2// RUN: mkdir -p %t/abc/def
NAKAMURA Takumi83910ae2014-11-04 13:32:17 +00003// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
Arnaud A. de Grandmaison617f5262012-07-10 16:56:35 +00004// RUN: cp "%s" "%t/test.cpp"
Rafael Espindola925213b2013-07-04 16:16:58 +00005// RUN: not clang-check -p "%t/abc/def" "%t/test.cpp" 2>&1|FileCheck %s
Arnaud A. de Grandmaison617f5262012-07-10 16:56:35 +00006// FIXME: Make the above easier.
7
8// CHECK: C++ requires
9invalid;