blob: 5d02c95fabdeb2893d332c5a4c98ccfdf5315c8b [file] [log] [blame]
Manuel Klimek00f3c4f2012-05-07 09:17:48 +00001// 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\"}]" > %t/compile_commands.json
6// RUN: cp "%s" "%t/test.cpp"
7// RUN: touch "%t/clang-check-test.h"
8// RUN: clang-check "%t" "%t/test.cpp" 2>&1|FileCheck %s
9// FIXME: Make the above easier.
10
11#include "clang-check-test.h"
12
13// CHECK: C++ requires
14invalid;
NAKAMURA Takumi1de76ba2012-05-16 22:14:14 +000015
16// FIXME: JSON doesn't like path separator '\', on Win32 hosts.
17// XFAIL: win32