Manuel Klimek | 8fa2fb8 | 2012-07-10 13:10:51 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: mkdir -p %t/abc/def/ijk/qwe |
| 3 | // 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 |
| 4 | // RUN: cp "%s" "%t/abc/def/ijk/qwe/test.cpp" |
Rafael Espindola | a214824 | 2013-08-10 01:40:10 +0000 | [diff] [blame] | 5 | // RUN: ln -sf %t/abc/def %t/abc/def2 |
| 6 | // RUN: cd %t/abc/def2 |
Rafael Espindola | 96e7813 | 2013-07-04 16:16:58 +0000 | [diff] [blame] | 7 | // RUN: not env PWD="%t/abc/def" clang-check "ijk/qwe/test.cpp" 2>&1 | FileCheck %s |
Manuel Klimek | 8fa2fb8 | 2012-07-10 13:10:51 +0000 | [diff] [blame] | 8 | |
| 9 | // CHECK: C++ requires |
Rafael Espindola | a214824 | 2013-08-10 01:40:10 +0000 | [diff] [blame] | 10 | // CHECK: /abc/def/ijk/qwe/test.cpp |
Manuel Klimek | 8fa2fb8 | 2012-07-10 13:10:51 +0000 | [diff] [blame] | 11 | invalid; |
Manuel Klimek | e265c87 | 2012-07-10 14:21:30 +0000 | [diff] [blame] | 12 | |
| 13 | // REQUIRES: shell |