blob: d77059d1458855d4fd447063bc2df6d07c9c1608 [file] [log] [blame]
/* APPLE LOCAL file radar 6023694 */
/* Test that no bogus warning is issued as the result of
'super' being 'volatized' for a try-catch statement. */
/* { dg-options "-Wall" } */
/* { dg-do compile } */
__attribute__((objc_root_class)) @interface NSObject {
}
- (unsigned)retainCount;
@end
@interface Foo : NSObject {
}
@end
@implementation Foo
- (unsigned)retainCount
{
[super retainCount];
@try {
} @catch(id anything) {
}
return [super retainCount];
}
@end