2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / objc.dg / symtab-1.m
blobd031cb46d06fa3547ebf8f84bf0ca606907dc286
1 /* Check if the objc_symtab descriptor is being laid out correctly.  */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
3 /* { dg-options "-fnext-runtime" } */
4 /* { dg-do compile { target *-*-darwin* } } */
6 #include <objc/Object.h>
8 @interface Base: Object 
9 - (void)setValues;
10 @end
12 @interface Derived: Base
13 - (void)checkValues;
14 @end
16 @implementation Base
17 -(void)setValues { }
18 @end
20 @implementation Derived
21 -(void)checkValues { }
22 @end
24 /* { 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" } } */