Fix type in the changelog entry,
[official-gcc.git] / gcc / testsuite / objc.dg / symtab-1.m
blob04d747dbce1650e0318cfbb634cedfd400a3887c
1 /* Check if the objc_symtab descriptor is being laid out correctly.  */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
4 /* { dg-do compile { target { *-*-darwin* } } } */
5 /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
7 #include <Foundation/NSObject.h>
9 @interface Base: NSObject 
10 - (void)setValues;
11 @end
13 @interface Derived: Base
14 - (void)checkValues;
15 @end
17 @implementation Base
18 -(void)setValues { }
19 @end
21 @implementation Derived
22 -(void)checkValues { }
23 @end
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 } } } } } */