1/* Check if the objc_symtab descriptor is being laid out correctly. */ 2/* Contributed by Ziemowit Laski <zlaski@apple.com>. */ 3 4/* { dg-do compile { target { *-*-darwin* } } } */ 5/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */ 6 7#include "../objc-obj-c++-shared/F-NSObject.h" 8 9@interface Base: NSObject 10- (void)setValues; 11@end 12 13@interface Derived: Base 14- (void)checkValues; 15@end 16 17@implementation Base 18-(void)setValues { } 19@end 20 21@implementation Derived 22-(void)checkValues { } 23@end 24 25/* { 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 { *86*-*-darwin* && { ! lp64 } } } } } */ 26/* { 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 } } } } } */ 27/* { dg-final { scan-assembler-not "L_OBJC_Symbols" { target { *-*-darwin* && { lp64 } } } } } */ 28