selector-3.mm

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

MM
28
字号
/* APPLE LOCAL file mainline *//* Test warning for non-existent selectors.  *//* This is the "-fgnu-runtime" variant of objc.dg/selector-1.m.  *//* { dg-options "-Wselector -fgnu-runtime" } *//* { dg-do compile } */typedef struct objc_object { struct objc_class *class_pointer; } *id;typedef const struct objc_selector    *SEL;@interface Foo- (void) foo;- (void) bar;@end@implementation Foo- (void) bar{}- (void) foo{  SEL a,b,c;  a = @selector(b1ar);  b = @selector(bar);}@end /* { dg-warning "creating selector for nonexistent method .b1ar." } */

⌨️ 快捷键说明

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