blob: 504d197ea9af080b3a489d3a6e14b39a2f224810 [file] [log] [blame]
Manuel Klimek3e8479d2012-04-25 09:25:41 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
3// Add a path that doesn't exist as argv[0] for the compile command line:
NAKAMURA Takumi8cf93ec2012-05-23 22:24:27 +00004// RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
Manuel Klimek3e8479d2012-04-25 09:25:41 +00005// RUN: cp "%s" "%t/test.cpp"
Manuel Klimek8fa2fb82012-07-10 13:10:51 +00006// RUN: clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
Manuel Klimek3e8479d2012-04-25 09:25:41 +00007// FIXME: Make the above easier.
8
9#include <stddef.h>
10
11// CHECK: C++ requires
12invalid;
NAKAMURA Takumi1de76ba2012-05-16 22:14:14 +000013
NAKAMURA Takumi8cf93ec2012-05-23 22:24:27 +000014// FIXME: This is incompatible to -fms-compatibility.
NAKAMURA Takumi1de76ba2012-05-16 22:14:14 +000015// XFAIL: win32