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