Home | History | Annotate | Download | only in PCH
      1 /* For use with the methods.m test */
      2 
      3 @interface TestPCH
      4 + alloc;
      5 - (instancetype)instMethod;
      6 @end
      7 
      8 @class TestForwardClassDecl;
      9 
     10 // FIXME: @compatibility_alias  AliasForTestPCH TestPCH;
     11 
     12 // http://llvm.org/PR12689
     13 @interface PR12689
     14 @end
     15 
     16 @implementation PR12689
     17 -(void)mugi:(int)x {
     18   switch(x) {
     19     case 23: {}
     20   }
     21 }
     22 -(void)bonk:(int)x {
     23   switch(x) {
     24     case 42: {}
     25   }
     26 }
     27 @end
     28 
     29 @interface PR12689_2
     30 @end
     31 
     32 @implementation PR12689_2
     33 -(void)mugi:(int)x {
     34     switch(x) {
     35         case 23: [self bonk:x]; break;
     36         case 82: break;
     37     }
     38 }
     39 -(void)bonk:(int)x {
     40 }
     41 @end
     42