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