OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [obj-c++.dg/] [const-str-9.mm] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* Test if ObjC constant strings get placed in the correct section.  */
/* Test if ObjC constant strings get placed in the correct section.  */
/* Contributed by Ziemowit Laski   */
/* Contributed by Ziemowit Laski   */
/* { dg-options "-fnext-runtime" } */
/* { dg-options "-fnext-runtime" } */
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
#include 
#include 
@interface NSConstantString: Object {
@interface NSConstantString: Object {
  char *cString;
  char *cString;
  unsigned int len;
  unsigned int len;
}
}
@end
@end
extern struct objc_class _NSConstantStringClassReference;
extern struct objc_class _NSConstantStringClassReference;
const NSConstantString *appKey = @"MyApp";
const NSConstantString *appKey = @"MyApp";
/* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */
/* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */
/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */
/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.