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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [darwin-segaddr.c] - Rev 754

Go to most recent revision | Compare with Previous | Blame | View Log

/* Check that -segaddr gets through and works.  */
/* { dg-do run { target *-*-darwin* } } */
/* { dg-options "-O0 -segaddr __TEST 0x200000 -fno-pie" { target { *-*-darwin* && { ! lp64 } } } } */
/* { dg-options "-O0 -segaddr __TEST 0x110000000 -fno-pie" { target { *-*-darwin* && lp64 } } } */
 
extern void abort ();
 
int t __attribute__((section("__TEST,__test")));
 
int main (void)
{
#ifdef __LP64__
  if ((unsigned long long) &t != 0x110000000ULL)
#else
  if ((unsigned long) &t != 0x200000UL)
#endif
    abort ();
  return 0;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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