28 lines · plain
1RUN: rm -rf %t.output_dir && mkdir %t.output_dir2RUN: %scan-build -o %t.output_dir \3RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \4RUN: | FileCheck %s -check-prefix CHECK-TWO-BUGS5 6RUN: rm -rf %t.output_dir && mkdir %t.output_dir7RUN: %scan-build -o %t.output_dir \8RUN: -disable-checker core.DivideZero \9RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \10RUN: | FileCheck %s -check-prefix CHECK-ONE-BUG11 12RUN: rm -rf %t.output_dir && mkdir %t.output_dir13RUN: %scan-build -o %t.output_dir \14RUN: -disable-checker core.NullDereference \15RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \16RUN: | FileCheck %s -check-prefix CHECK-ONE-BUG17 18RUN: rm -rf %t.output_dir && mkdir %t.output_dir19RUN: %scan-build -o %t.output_dir \20RUN: -disable-checker core.NullDereference \21RUN: -disable-checker core.DivideZero \22RUN: %clang -S %S/Inputs/null_dereference_and_division_by_zero.c \23RUN: | FileCheck %s -check-prefix CHECK-NO-BUGS24 25CHECK-NO-BUGS: scan-build: No bugs found.26CHECK-ONE-BUG: scan-build: 1 bug found.27CHECK-TWO-BUGS: scan-build: 2 bugs found.28