28 lines
1.1 KiB
Objective-C
28 lines
1.1 KiB
Objective-C
/* Check if the objc_symtab descriptor is being laid out correctly. */
|
|
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
|
|
|
/* { dg-do compile { target { *-*-darwin* } } } */
|
|
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
|
|
|
#include "../objc-obj-c++-shared/Object1.h"
|
|
|
|
@interface Base: Object
|
|
- (void)setValues;
|
|
@end
|
|
|
|
@interface Derived: Base
|
|
- (void)checkValues;
|
|
@end
|
|
|
|
@implementation Base
|
|
-(void)setValues { }
|
|
@end
|
|
|
|
@implementation Derived
|
|
-(void)checkValues { }
|
|
@end
|
|
|
|
/* { dg-final { scan-assembler "L_OBJC_SYMBOLS.*:\n\t.long\t0\n\t.long\t0\n\t.word\t2\n\t.word\t0\n\t.long\tL_OBJC_CLASS_Derived.*\n\t.long\tL_OBJC_CLASS_Base.*\n" { target { i?86-*-darwin* && { ! lp64 } } } } } */
|
|
/* { dg-final { scan-assembler "L_OBJC_SYMBOLS.*:\n\t.long\t0\n\t.long\t0\n\t.short\t2\n\t.short\t0\n\t.long\tL_OBJC_CLASS_Derived.*\n\t.long\tL_OBJC_CLASS_Base.*\n" { target { powerpc-*-darwin* && { ! lp64 } } } } } */
|
|
/* { dg-final { scan-assembler "L_OBJC_SYMBOLS.*:\n\t.quad\t0\n\t.long\t0\n\t.space 4\n\t.word\t2\n\t.word\t0\n\t.space 4\n\t.quad\tL_OBJC_CLASS_Derived.*\n\t.quad\tL_OBJC_CLASS_Base.*\n" { target { *-*-darwin* && { lp64 } } } } } */
|