| 1 |
// REQUIRES: symlinks |
| 2 |
|
| 3 |
// RUN: rm -rf %t |
| 4 |
// RUN: mkdir %t |
| 5 |
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json |
| 6 |
// RUN: cp "%s" "%t/test.cpp" |
| 7 |
// RUN: ln -sf %t %t.foobar |
| 8 |
// RUN: cd %t |
| 9 |
// RUN: env PWD="%t.foobar" not clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s |
| 10 |
// FIXME: Make the above easier. |
| 11 |
|
| 12 |
// CHECK: a type specifier is required |
| 13 |
// CHECK: .foobar/test.cpp |
| 14 |
invalid; |