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"
|
2013-08-10 09:40:10 +08:00
|
|
|
// RUN: ln -sf %t %t.foobar
|
|
|
|
// RUN: cd %t
|
|
|
|
// RUN: not env PWD="%t.foobar" clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s
|
2012-04-10 03:10:04 +08:00
|
|
|
// FIXME: Make the above easier.
|
|
|
|
|
2012-04-10 20:12:33 +08:00
|
|
|
// CHECK: C++ requires
|
2013-08-10 09:40:10 +08:00
|
|
|
// CHECK: .foobar/test.cpp
|
2012-04-10 20:12:33 +08:00
|
|
|
invalid;
|
2012-04-10 03:10:04 +08:00
|
|
|
|
2012-05-17 01:37:56 +08:00
|
|
|
// REQUIRES: shell
|