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