[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Tooling / clang-check-chdir.cpp
blobeea60f155cbaf787accaf164e7e674f4f56021b1
1 // Verifies that paths are resolved relatively to the directory specified in the
2 // compilation database.
3 // RUN: rm -rf %t
4 // RUN: mkdir %t
5 // RUN: echo "[{\"directory\":\"%t\",\"command\":\"clang -c test.cpp -I.\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\//g' > %t/compile_commands.json
6 // RUN: cp "%s" "%t/test.cpp"
7 // RUN: touch "%t/clang-check-test.h"
8 // RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
9 // FIXME: Make the above easier.
11 #include "clang-check-test.h"
13 // CHECK: a type specifier is required
14 invalid;