aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pie-2.c
blob: 0a1cc27a503dac92fe6eb9aaf2e6503d321fcba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-fPIE" } */
/* { dg-require-effective-target pie } */
/* { dg-skip-if "__PIC__ is always 1 for MIPS" { mips*-*-* } } */
/* { dg-skip-if "__PIE__ is often not defined on darwin" { *-*-darwin* } } */

#if __PIC__ != 2
# error __PIC__ is not 2!
#endif

#if __PIE__ != 2
# error __PIE__ is not 2!
#endif