]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Tooling/auto-detect-from-source-parent.cpp
Vendor import of clang trunk r161861:
[FreeBSD/FreeBSD.git] / test / Tooling / auto-detect-from-source-parent.cpp
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"
5 // RUN: clang-check "%t/abc/def/ijk/qwe/test.cpp" 2>&1 | FileCheck %s
6
7 // CHECK: C++ requires
8 invalid;
9
10 // REQUIRES: shell