Steve Naroff | 53c9d8a | 2009-04-20 15:06:07 +0000 | [diff] [blame] | 1 | /* For use with the methods.m test */ |
| 2 | |
| 3 | @interface TestPCH |
| 4 | + alloc; |
Douglas Gregor | e97179c | 2011-09-08 01:46:34 +0000 | [diff] [blame] | 5 | - (instancetype)instMethod; |
Steve Naroff | 53c9d8a | 2009-04-20 15:06:07 +0000 | [diff] [blame] | 6 | @end |
Steve Naroff | 8f06f84 | 2009-04-23 16:00:56 +0000 | [diff] [blame] | 7 | |
| 8 | @class TestForwardClassDecl; |
| 9 | |
| 10 | // FIXME: @compatibility_alias AliasForTestPCH TestPCH; |
| 11 | |
Argyrios Kyrtzidis | 67835c1 | 2012-05-03 02:26:32 +0000 | [diff] [blame] | 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 |
Argyrios Kyrtzidis | b88acb0 | 2012-05-04 01:49:36 +0000 | [diff] [blame] | 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 |