blob: 8d09338a8d5a9f7fb6b0908ca11792919d664491 [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 } */
@interface NSObject {
}
- (unsigned)retainCount;
@end
@interface Foo : NSObject {
}
@end
@implementation Foo
- (unsigned)retainCount
{
[super retainCount];
@try {
} @catch(id anything) {
}
return [super retainCount];
}
@end