]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pie-2.c
Testsuite, Darwin: skip PIE test
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pie-2.c
CommitLineData
b57e6e18
L
1/* { dg-do compile } */
2/* { dg-options "-fPIE" } */
125f02ed 3/* { dg-require-effective-target pie } */
9d60683a 4/* { dg-skip-if "__PIC__ is always 1 for MIPS" { mips*-*-* } } */
a0c55769 5/* { dg-skip-if "__PIE__ is often not defined on darwin" { *-*-darwin* } } */
b57e6e18
L
6
7#if __PIC__ != 2
8# error __PIC__ is not 2!
9#endif
10
11#if __PIE__ != 2
12# error __PIE__ is not 2!
13#endif