163d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// RUN: rm -rf %t 263d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// RUN: mkdir %t 363d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp -o foo -ofoo","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json 463d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// RUN: cp "%s" "%t/test.cpp" 596e7813f08c6adf1d8657b0da86741b54e850fd7Rafael Espindola// RUN: not clang-check -p "%t" "%t/test.cpp" -extra-arg=-v 2>&1|FileCheck %s 663d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// FIXME: Make the above easier. 763d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath 863d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// CHECK: Invocation 963d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// CHECK-NOT: {{ -v}} 1063d5335aea916584b76790af1f1ed7caeaf8efebPavel Labath// CHECK: C++ requires 1163d5335aea916584b76790af1f1ed7caeaf8efebPavel Labathinvalid; 12