1 /* Check that typedefs of ObjC classes preserve
2 any @protocol qualifiers. */
3 /* { dg-do compile } */
5 #ifdef __NEXT_RUNTIME__
6 #include <Foundation/NSObject.h>
7 #define OBJECT NSObject
9 #include <objc/Object.h>
15 typedef OBJECT<CanDoStuff> CanDoStuffType;
16 typedef OBJECT<CanDoStuff> *CanDoStuffTypePtr;
28 CanDoStuffTypePtr dice = nil;
29 CanDoStuffType *nodice = nil;
31 count = [dice dostuff];
32 count = [nodice dostuff];