URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [const-str-11.m] - Rev 827
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test if ObjC constant string layout is checked properly, regardless of how constant string classes get derived. */ /* Contributed by Ziemowit Laski <zlaski@apple.com> */ /* { dg-options "-fnext-runtime -fconstant-string-class=XStr" } */ /* { dg-do compile { target *-*-darwin* } } */ #include <objc/Object.h> @interface XString: Object { @protected char *bytes; } @end @interface XStr : XString { @public unsigned int len; } @end extern struct objc_class _XStrClassReference; const XStr *appKey = @"MyApp"; /* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */ /* { dg-final { scan-assembler ".long\t__XStrClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */
Go to most recent revision | Compare with Previous | Blame | View Log