?? zero-link-3.m
字號:
/* Check that the '-fzero-link' flag doesn't prevent messaging from working. *//* Contributed by Ziemowit Laski <zlaski@apple.com>. *//* { dg-options "-fnext-runtime -fzero-link -lobjc" } *//* { dg-do run { target *-*-darwin* } } */#import <objc/objc.h>#import <objc/Object.h>extern void abort(void);#define CHECK_IF(expr) if(!(expr)) abort();@interface Base: Object+ (int) getValue;@end@implementation Base+ (int) getValue { return 1593; }@endint main(void) { int val = [Base getValue]; CHECK_IF(val == 1593); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -