brintos

brintos / llvm-project-archived public Read only

0
0
Text · 616 B · ff5e86a Raw
15 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir %t3// RUN: cd %t4// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp -o foo -ofoo","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json5// RUN: cp "%s" "%t/test.cpp"6// RUN: echo '// CHECK: {{qwerty}}' > %t/cclog-check7// 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-check8// RUN: FileCheck %s --input-file=%t/qwerty9 10// CHECK: DOCTYPE plist11// CHECK: Division by zero12int f() {13  return 1 / 0; // expected-warning {{Division by zero}}14}15