1/* Test calling super from within a category class method. */ 2/* Author: Ziemowit Laski <zlaski@apple.com> */ 3/* { dg-do compile } */ 4/* { dg-options "-fnext-runtime" } */ 5 6typedef struct objc_object { struct objc_class *isa; } *id; 7 8@interface NSObject 9+ (int) test_func0; 10@end 11@interface NSMenuItem: NSObject 12+ (int) test_func0; 13@end 14 15@implementation NSObject 16+ (int) test_func0 17{} 18@end 19 20@implementation NSMenuItem 21+ (int) test_func0 22{ 23 return [super test_func0]; 24} 25@end 26 27@interface NSObject (Test) 28+ (int) test_func; 29@end 30 31@implementation NSObject (Test) 32+ (int) test_func 33{} 34@end 35 36@interface NSMenuItem (Test) 37+ (int) test_func; 38@end 39 40@implementation NSMenuItem (Test) 41+ (int) test_func 42{ 43 return [super test_func]; /* { dg-bogus "dereferencing pointer to incomplete type" } */ 44} 45@end 46