blob: 29b5abb4c946684301e595b06cda3aaef29701ee [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
NAKAMURA Takumi8cf93ec2012-05-23 22:24:27 +00005// RUN: echo "[{\"directory\":\"%t\",\"command\":\"clang -c test.cpp -I.\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\//g' > %t/compile_commands.json
Manuel Klimek00f3c4f2012-05-07 09:17:48 +00006// RUN: cp "%s" "%t/test.cpp"
7// RUN: touch "%t/clang-check-test.h"
Manuel Klimek8fa2fb82012-07-10 13:10:51 +00008// RUN: clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
Manuel Klimek00f3c4f2012-05-07 09:17:48 +00009// 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
NAKAMURA Takumi8cf93ec2012-05-23 22:24:27 +000016// FIXME: This is incompatible to -fms-compatibility.
NAKAMURA Takumi1de76ba2012-05-16 22:14:14 +000017// XFAIL: win32