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