1 /* 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 } } } */
8 int t
__attribute__((section("__TEST,__test")));
13 if ((unsigned long long) &t
!= 0x110000000ULL
)
15 if ((unsigned long) &t
!= 0x200000UL
)