2012-07-10 21:10:51 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir -p %t/abc/def/ijk/qwe
|
|
|
|
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/abc/def/ijk/qwe/test.cpp\",\"file\":\"%t/abc/def/ijk/qwe/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
|
|
|
|
// RUN: cp "%s" "%t/abc/def/ijk/qwe/test.cpp"
|
2013-08-10 09:40:10 +08:00
|
|
|
// RUN: ln -sf %t/abc/def %t/abc/def2
|
|
|
|
// RUN: cd %t/abc/def2
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not env PWD="%t/abc/def" clang-check "ijk/qwe/test.cpp" 2>&1 | FileCheck %s
|
2012-07-10 21:10:51 +08:00
|
|
|
|
|
|
|
// CHECK: C++ requires
|
2013-08-10 09:40:10 +08:00
|
|
|
// CHECK: /abc/def/ijk/qwe/test.cpp
|
2012-07-10 21:10:51 +08:00
|
|
|
invalid;
|
2012-07-10 22:21:30 +08:00
|
|
|
|
|
|
|
// REQUIRES: shell
|