* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git] / gcc / testsuite / obj-c++.dg / super-class-1.mm
blobf8cccb3d4c815b9e71c12dce48a834a1c12e0672
1 /* Test calling super from within a category method.  */
3 /* { dg-do compile } */
5 #include <objc/objc.h>
7 @interface NSObject
8 @end
9 @interface NSMenuItem: NSObject
10 @end
12 @interface NSObject (Test)
13 + (int) test_func;
14 @end
16 @implementation NSObject (Test)
17 + (int) test_func
19 @end
21 @interface NSMenuItem (Test)
22 + (int) test_func;
23 @end
25 @implementation NSMenuItem (Test)
26 + (int) test_func
28    return [super test_func];  /* { dg-bogus "invalid use of undefined type" } */
29 }   /* { dg-bogus "forward declaration of" "" { target *-*-* } .-1 } */
30 @end