[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / ARCMT / verify.m
blob7d245fe80575e5b1cde3ebd33270047ef93d4590
1 // RUN: %clang_cc1 -arcmt-action=check -verify %s
2 // RUN: not %clang_cc1 -arcmt-action=check -verify %t.invalid 2>&1 | FileCheck %s
4 #if 0
5 // expected-error {{should be ignored}}
6 #endif
8 #error should not be ignored
9 // expected-error@-1 {{should not be ignored}}
11 #error
12 // expected-error@-1 {{}}
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.