xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/objc_stmts.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc /* For use with the methods.m test */
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc @interface A
4*f4a2713aSLionel Sambuc @end
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc @interface B
7*f4a2713aSLionel Sambuc @end
8*f4a2713aSLionel Sambuc 
9*f4a2713aSLionel Sambuc @interface TestPCH
10*f4a2713aSLionel Sambuc - (void)instMethod;
11*f4a2713aSLionel Sambuc @end
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc @implementation TestPCH
14*f4a2713aSLionel Sambuc - (void)instMethod {
15*f4a2713aSLionel Sambuc   @try {
catch(A * a)16*f4a2713aSLionel Sambuc   } @catch(A *a) {
17*f4a2713aSLionel Sambuc   } @catch(B *b) {
catch(...)18*f4a2713aSLionel Sambuc   } @catch(...) {
19*f4a2713aSLionel Sambuc   } @finally {
20*f4a2713aSLionel Sambuc   }
21*f4a2713aSLionel Sambuc }
22*f4a2713aSLionel Sambuc @end
23