darwin-segaddr.c: New test for multiple argument c/l switch.

gcc/testsuite:

	* gcc.dg/darwin-segaddr.c: New test for multiple argument c/l switch.

From-SVN: r166705
This commit is contained in:
Iain Sandoe 2010-11-13 12:56:39 +00:00
parent a99291e491
commit a0abcb2ee3
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
* gcc.dg/darwin-segaddr.c: New test for multiple argument c/l switch.
2010-11-13 Tobias Burnus <burnus@net-b.de>
PR fortran/45742

View File

@ -0,0 +1,19 @@
/* Check that -segaddr gets through and works. */
/* { dg-do run { target *-*-darwin* } } */
/* { dg-options "-O0 -segaddr __TEST 0x200000" { target { *-*-darwin* && { ! lp64 } } } } */
/* { dg-options "-O0 -segaddr __TEST 0x110000000" { 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;
}