Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Frontend / verify-fatal.c
blob68fdf5517174616f614f098419cd347b708b60d4
1 // RUN: not %clang_cc1 -Wfatal-errors -verify %s 2>&1 | FileCheck %s
3 #error first fatal
4 // expected-error@-1 {{first fatal}}
6 #error second fatal
7 // expected-error@-1 {{second fatal}}
10 // CHECK: error: 'expected-error' diagnostics expected but not seen:
11 // CHECK-NEXT: Line 6 (directive at {{.*}}verify-fatal.c:7): second fatal
12 // CHECK-NEXT: 1 error generated.