method-20.mm

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· MM 代码 · 共 19 行

MM
19
字号
/* APPLE LOCAL file mainline *//* Test if context-sensitive "in", "out", "byref", etc., qualifiers can be   used as method selectors.  *//* Author: Ziemowit Laski <zlaski@apple.com>.  *//* { dg-do compile } */@interface Foo- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell;+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5;@end@implementation Foo- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell { }+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5 { }@end/* { dg-final { scan-assembler "insertNewButtonImage:in:" } } *//* { dg-final { scan-assembler "oneway:byref:out:bycopy:" } } */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?