1 /* Check if the '-freplace-objc-classes' option causes the
2 __OBJC,__image_info section to be emitted. This is only
3 usable on MacOS X 10.3 and later. */
4 /* Contributed by Ziemowit Laski <zlaski@apple.com>. */
5 /* { dg-options "-freplace-objc-classes" } */
6 /* { dg-do compile { target *-*-darwin* } } */
8 #ifndef __NEXT_RUNTIME__
9 #error Feature not currently supported by the GNU runtime
12 #include <objc/objc.h>
13 #include <objc/Object.h>
15 extern void abort(void);
17 #define CHECK_IF(expr) if(!(expr)) abort();
19 @interface Base: Object {
38 /* { dg-final { scan-assembler "\t.section __OBJC, __image_info.*\n\t.align.*\nL_OBJC_IMAGE_INFO.*:\n\t.long\t0\n\t.long\t1" } } */