1 /* Test calling super from within a category method. */
3 /* { dg-do compile } */
4 /* { dg-additional-options "-Wno-return-type" } */
10 @interface NSMenuItem: NSObject
13 @interface NSObject (Test)
17 @implementation NSObject (Test)
22 @interface NSMenuItem (Test)
26 @implementation NSMenuItem (Test)
29 return [super test_func]; /* { dg-bogus "invalid use of undefined type" } */
30 } /* { dg-bogus "forward declaration of" "" { target *-*-* } .-1 } */