gnu-runtime-3.mm

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

MM
32
字号
/* APPLE LOCAL file mainline *//* Test that compiling for the GNU runtime works (regardless of   the system runtime used).  *//* Author: Ziemowit Laski <zlaski@apple.com>  *//* { dg-do run } *//* { dg-options "-fgnu-runtime" } */#include <objc/Object.h>@interface FooBar: Object- (void)boo;@endint called = 0;extern "C" void abort ();@implementation FooBar- (void)boo{  called ++;}@endint main (){  id fooBarInst = [[FooBar alloc] init];  [fooBarInst boo];  if (called != 1)    abort ();  return 0;}

⌨️ 快捷键说明

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