blob: 6dfa24896238e3cfce88367d15f97d3430619d07 [file] [log] [blame]
Steve Naroff53c9d8a2009-04-20 15:06:07 +00001/* For use with the methods.m test */
2
3@interface TestPCH
4+ alloc;
Douglas Gregore97179c2011-09-08 01:46:34 +00005- (instancetype)instMethod;
Steve Naroff53c9d8a2009-04-20 15:06:07 +00006@end
Steve Naroff8f06f842009-04-23 16:00:56 +00007
8@class TestForwardClassDecl;
9
10// FIXME: @compatibility_alias AliasForTestPCH TestPCH;
11
Argyrios Kyrtzidis67835c12012-05-03 02:26:32 +000012// 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 Kyrtzidisb88acb02012-05-04 01:49:36 +000028
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