1 // RUN: not %clang_cc1 -verify %s 2>&1 | FileCheck %s
3 #include "verify-any-file.h"
4 // expected-error@*:* {{unknown type name 'unexpected'}}
6 // expected-error@*:* {{missing error}}
8 // expected-error@*:123 {{invalid line : "*" required}}
10 // CHECK: error: 'expected-error' diagnostics expected but not seen:
11 // CHECK-NEXT: File * Line * (directive at {{.*}}verify-any-file.c:6): missing error
12 // CHECK-NEXT: error: 'expected-error' diagnostics seen but not expected:
13 // CHECK-NEXT: File {{.*}}verify-any-file.c Line 8: missing or invalid line number following '@' in expected '*'
14 // CHECK-NEXT: 2 errors generated.