1*67e74705SXin Li // RUN: rm -rf %t 2*67e74705SXin Li // RUN: mkdir %t 3*67e74705SXin Li // Add a path that doesn't exist as argv[0] for the compile command line: 4*67e74705SXin Li // RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json 5*67e74705SXin Li // RUN: cp "%s" "%t/test.cpp" 6*67e74705SXin Li // RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s 7*67e74705SXin Li // FIXME: Make the above easier. 8*67e74705SXin Li 9*67e74705SXin Li #include <stddef.h> 10*67e74705SXin Li 11*67e74705SXin Li // CHECK: C++ requires 12*67e74705SXin Li invalid; 13