[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / objc-at-implementation-eof-crash.m
blob76e56c10703e0ba1ef32f170a731d36639ed867c
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 @implementation ClassC //              \
20   // expected-error {{missing '@end'}} \
21   // expected-error {{expected '}'}}   \
22   // expected-warning {{cannot find interface declaration for 'ClassC'}}
24 @end