[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / objc-at-interface-eof-crash.m
blob2c7bfd688f06c7e9e09111aa3474828d48874d6b
1 // RUN: %clang_cc1 -verify -Wno-objc-root-class %s
3 @interface ClassA
5 - (void)fileExistsAtPath:(int)x;
7 @end
9 @interface ClassB
11 @end
13 @implementation ClassB // expected-note {{implementation started here}}
15 - (void) method:(ClassA *)mgr { // expected-note {{to match this '{'}}
16   [mgr fileExistsAtPath:0
17 } // expected-error {{expected ']'}}
19 @interface ClassC //                   \
20   // expected-error {{missing '@end'}} \
21   // expected-error {{expected '}'}}
23 @end