4 // RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp -o foo -ofoo","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
5 // RUN: cp "%s" "%t/test.cpp"
6 // RUN: echo '// CHECK: {{qwerty}}' > %t/cclog-check
7 // RUN: clang-check -p "%t" "%t/test.cpp" -analyze -analyzer-output-path=%t/qwerty -extra-arg=-v -extra-arg=-Xclang -extra-arg=-verify 2>&1 | FileCheck %t/cclog-check
8 // RUN: FileCheck %s --input-file=%t/qwerty
10 // CHECK: DOCTYPE plist
11 // CHECK: Division by zero
13 return 1 / 0; // expected-warning {{Division by zero}}