blob: 4324dec61b2e308e6331f6b7c389882fec65b6f1 [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:
4// RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' > %t/compile_commands.json
5// RUN: cp "%s" "%t/test.cpp"
6// RUN: clang-check "%t" "%t/test.cpp" 2>&1|FileCheck %s
7// FIXME: Make the above easier.
8
9#include <stddef.h>
10
11// CHECK: C++ requires
12invalid;
NAKAMURA Takumi1de76ba2012-05-16 22:14:14 +000013
14// FIXME: JSON doesn't like path separator '\', on Win32 hosts.
15// XFAIL: win32