2012-04-25 17:25:41 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
|
|
|
// Add a path that doesn't exist as argv[0] for the compile command line:
|
2012-05-24 06:24:27 +08:00
|
|
|
// RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
|
2012-04-25 17:25:41 +08:00
|
|
|
// RUN: cp "%s" "%t/test.cpp"
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
|
2012-04-25 17:25:41 +08:00
|
|
|
// FIXME: Make the above easier.
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
// CHECK: C++ requires
|
|
|
|
invalid;
|