1 // FIXME: Actually, "perl".
4 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
5 RUN: %scan-build -o %t.output_dir \
6 RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \
7 RUN: | FileCheck %s -check-prefix CHECK-TWO-BUGS
9 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
10 RUN: %scan-build -o %t.output_dir \
11 RUN: -disable-checker core.DivideZero \
12 RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \
13 RUN: | FileCheck %s -check-prefix CHECK-ONE-BUG
15 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
16 RUN: %scan-build -o %t.output_dir \
17 RUN: -disable-checker core.NullDereference \
18 RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \
19 RUN: | FileCheck %s -check-prefix CHECK-ONE-BUG
21 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
22 RUN: %scan-build -o %t.output_dir \
23 RUN: -disable-checker core.NullDereference \
24 RUN: -disable-checker core.DivideZero \
25 RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \
26 RUN: | FileCheck %s -check-prefix CHECK-NO-BUGS
28 CHECK-NO-BUGS: scan-build: No bugs found.
29 CHECK-ONE-BUG: scan-build: 1 bug found.
30 CHECK-TWO-BUGS: scan-build: 2 bugs found.