Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / ubsan / TestCases / Misc / print_summary.c
blobb67a0614dd2f118585d2519f56dcdd3966c413cf
1 // RUN: %clang -fsanitize=undefined %s -O3 -o %t
2 // RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-DEFAULT
3 // RUN: %env_ubsan_opts=print_summary=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NO_SUMMARY
5 // CHECK-DEFAULT: SUMMARY: UndefinedBehaviorSanitizer: {{.*}}
6 // CHECK-NO_SUMMARY-NOT: SUMMARY: UndefinedBehaviorSanitizer: {{.*}}
8 int main(int argc, char **argv) {
9 int arr[argc - 2];
10 return 0;