1/* Test calling super from within a category method. */ 2 3/* { dg-do compile } */ 4 5#include <objc/objc.h> 6 7@interface NSObject 8@end 9@interface NSMenuItem: NSObject 10@end 11 12@interface NSObject (Test) 13+ (int) test_func; 14@end 15 16@implementation NSObject (Test) 17+ (int) test_func 18{} 19@end 20 21@interface NSMenuItem (Test) 22+ (int) test_func; 23@end 24 25@implementation NSMenuItem (Test) 26+ (int) test_func 27{ 28 return [super test_func]; /* { dg-bogus "invalid use of undefined type" } */ 29} /* { dg-bogus "forward declaration of" "" { target *-*-* } 28 } */ 30@end 31