llvm-project
17 строк · 573.0 Байт
1// RUN: %clang_cc1 -arcmt-action=check -verify %s
2// RUN: not %clang_cc1 -arcmt-action=check -verify %t.invalid 2>&1 | FileCheck %s
3
4#if 0
5// expected-error {{should be ignored}}
6#endif
7
8#error should not be ignored
9// expected-error@-1 {{should not be ignored}}
10
11#error
12// expected-error@-1 {{}}
13
14// CHECK: error: no expected directives found: consider use of 'expected-no-diagnostics'
15// CHECK-NEXT: error: 'expected-error' diagnostics seen but not expected:
16// CHECK-NEXT: (frontend): error reading '{{.*}}verify.m.tmp.invalid'
17// CHECK-NEXT: 2 errors generated.
18