proto-lossage-7.mm
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· MM 代码 · 共 30 行
MM
30 行
/* APPLE LOCAL file 4216500 *//* Check that typedefs of ObjC classes preserve any @protocol qualifiers. *//* { dg-do compile } */#include <objc/Object.h>@protocol CanDoStuff;typedef Object<CanDoStuff> CanDoStuffType;typedef Object<CanDoStuff> *CanDoStuffTypePtr;@protocol CanDoStuff- (int) dostuff;@end@protocol MoreStuff- (int) morestuff;@endint main(void){ CanDoStuffTypePtr dice = nil; CanDoStuffType *nodice = nil; int count; count = [dice dostuff]; count = [nodice dostuff]; return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?