2009-04-20 23:06:07 +08:00
|
|
|
/* For use with the methods.m test */
|
|
|
|
|
|
|
|
@interface TestPCH
|
|
|
|
+ alloc;
|
2011-09-08 09:46:34 +08:00
|
|
|
- (instancetype)instMethod;
|
2009-04-20 23:06:07 +08:00
|
|
|
@end
|
2009-04-24 00:00:56 +08:00
|
|
|
|
|
|
|
@class TestForwardClassDecl;
|
|
|
|
|
|
|
|
// FIXME: @compatibility_alias AliasForTestPCH TestPCH;
|
|
|
|
|
2012-05-03 10:26:32 +08:00
|
|
|
// http://llvm.org/PR12689
|
|
|
|
@interface PR12689
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation PR12689
|
|
|
|
-(void)mugi:(int)x {
|
|
|
|
switch(x) {
|
|
|
|
case 23: {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-(void)bonk:(int)x {
|
|
|
|
switch(x) {
|
|
|
|
case 42: {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@end
|
2012-05-04 09:49:36 +08:00
|
|
|
|
|
|
|
@interface PR12689_2
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation PR12689_2
|
|
|
|
-(void)mugi:(int)x {
|
|
|
|
switch(x) {
|
|
|
|
case 23: [self bonk:x]; break;
|
|
|
|
case 82: break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-(void)bonk:(int)x {
|
|
|
|
}
|
|
|
|
@end
|