2012-04-14 14:01:31 +00:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2012-08-15 20:02:54 +00:00
|
|
|
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
|
2012-04-14 14:01:31 +00:00
|
|
|
// RUN: cp "%s" "%t/test.cpp"
|
2013-12-22 00:07:40 +00: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-14 14:01:31 +00:00
|
|
|
// FIXME: Make the above easier.
|
|
|
|
|
|
|
|
// CHECK: C++ requires
|
2013-12-22 00:07:40 +00:00
|
|
|
// CHECK: .foobar/test.cpp
|
2012-04-14 14:01:31 +00:00
|
|
|
invalid;
|
|
|
|
|
2012-08-15 20:02:54 +00:00
|
|
|
// REQUIRES: shell
|