1*f4a2713aSLionel Sambuc // Verifies that paths are resolved relatively to the directory specified in the 2*f4a2713aSLionel Sambuc // compilation database. 3*f4a2713aSLionel Sambuc // RUN: rm -rf %t 4*f4a2713aSLionel Sambuc // RUN: mkdir %t 5*f4a2713aSLionel Sambuc // RUN: echo "[{\"directory\":\"%t\",\"command\":\"clang -c test.cpp -I.\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\//g' > %t/compile_commands.json 6*f4a2713aSLionel Sambuc // RUN: cp "%s" "%t/test.cpp" 7*f4a2713aSLionel Sambuc // RUN: touch "%t/clang-check-test.h" 8*f4a2713aSLionel Sambuc // RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s 9*f4a2713aSLionel Sambuc // FIXME: Make the above easier. 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc #include "clang-check-test.h" 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc // CHECK: C++ requires 14*f4a2713aSLionel Sambuc invalid; 15