You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
609 B
15 lines
609 B
4 months ago
|
// RUN: not %clang_cc1 -verify %s 2>&1 | FileCheck %s
|
||
|
|
||
|
#include "verify-any-file.h"
|
||
|
// expected-error@*:* {{unknown type name 'unexpected'}}
|
||
|
|
||
|
// expected-error@*:* {{missing error}}
|
||
|
|
||
|
// expected-error@*:123 {{invalid line : "*" required}}
|
||
|
//
|
||
|
// CHECK: error: 'error' diagnostics expected but not seen:
|
||
|
// CHECK-NEXT: File * Line * (directive at {{.*}}verify-any-file.c:6): missing error
|
||
|
// CHECK-NEXT: error: 'error' diagnostics seen but not expected:
|
||
|
// CHECK-NEXT: File {{.*}}verify-any-file.c Line 8: missing or invalid line number following '@' in expected '*'
|
||
|
// CHECK-NEXT: 2 errors generated.
|