[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / missing-end-2.m
blobe32749bcbb9b58808d0ce4c3ea2777a129b202a1
1 // RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s
3 @interface A // expected-note {{class started here}}
4 -(void) im0; // expected-note {{method 'im0' declared here}}
6 // expected-warning@+1 {{method definition for 'im0' not found}}
7 @implementation A // expected-error {{missing '@end'}}
8 @end
10 @interface B { // expected-note {{class started here}}
13 @implementation B // expected-error {{missing '@end'}}
14 @end
16 @interface C // expected-note 1 {{class started here}}
17 @property int P;
19 // expected-note@+1 {{implementation started here}}
20 @implementation C // expected-error 2 {{missing '@end'}}