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] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Check that -segaddr gets through and works.  */
2
/* { dg-do run { target *-*-darwin* } } */
3
/* { dg-options "-O0 -segaddr __TEST 0x200000 -fno-pie" { target { *-*-darwin* && { ! lp64 } } } } */
4
/* { dg-options "-O0 -segaddr __TEST 0x110000000 -fno-pie" { target { *-*-darwin* && lp64 } } } */
5
 
6
extern void abort ();
7
 
8
int t __attribute__((section("__TEST,__test")));
9
 
10
int main (void)
11
{
12
#ifdef __LP64__
13
  if ((unsigned long long) &t != 0x110000000ULL)
14
#else
15
  if ((unsigned long) &t != 0x200000UL)
16
#endif
17
    abort ();
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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