1*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -Wfatal-errors -verify %s 2>&1 | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc #error first fatal 4*f4a2713aSLionel Sambuc // expected-error@-1 {{first fatal}} 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc #error second fatal 7*f4a2713aSLionel Sambuc // expected-error@-1 {{second fatal}} 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc // CHECK: error: 'error' diagnostics expected but not seen: 11*f4a2713aSLionel Sambuc // CHECK-NEXT: Line 6 (directive at {{.*}}verify-fatal.c:7): second fatal 12*f4a2713aSLionel Sambuc // CHECK-NEXT: 1 error generated. 13