stabs-4.m

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

M
36
字号
/* APPLE LOCAL file 4174833 *//* Check that the STABS information for ObjC objects is flattened;   gdb does not (yet) know how to traverse ObjC class hierarchies.  *//* Contributed by Ziemowit Laski <zlaski@apple.com> *//* { dg-do compile { target *-*-darwin* } } *//* { dg-options "-gfull" } */#include <objc/Object.h>@interface Base: Object {  int a;  id b;}- meth;@end@interface Derived: Base {  Object *c;  Base *d;}- meth;@end@implementation Base- meth { a = 0; return self; }@end@implementation Derived- meth { d = self; return self; }@end/* { dg-final { scan-assembler "Base:T\\(\[0-9\]+,\[0-9\]+\\)=s\[0-9\]+isa:/1\\(\[0-9\]+,\[0-9\]+\\),0,\[0-9\]+" } } *//* { dg-final { scan-assembler "Derived:T\\(\[0-9\]+,\[0-9\]+\\)=s\[0-9\]+isa:/1\\(\[0-9\]+,\[0-9\]+\\),0,\[0-9\]+;a:/1\\(\[0-9\]+,\[0-9\]+\\)" } } */

⌨️ 快捷键说明

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