1 /* Check that typedefs of ObjC classes preserve
2 any @protocol qualifiers. */
3 /* { dg-do compile } */
4 #include <objc/Object.h>
8 typedef Object<CanDoStuff> CanDoStuffType;
9 typedef Object<CanDoStuff> *CanDoStuffTypePtr;
21 CanDoStuffTypePtr dice = nil;
22 CanDoStuffType *nodice = nil;
24 count = [dice dostuff];
25 count = [nodice dostuff];