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" } */
6 typedef struct objc_object { struct objc_class *isa; } *id;
11 @interface NSMenuItem: NSObject
15 @implementation NSObject
20 @implementation NSMenuItem
23 return [super test_func0];
27 @interface NSObject (Test)
31 @implementation NSObject (Test)
36 @interface NSMenuItem (Test)
40 @implementation NSMenuItem (Test)
43 return [super test_func]; /* { dg-bogus "dereferencing pointer to incomplete type" } */