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