Debian Codegraph @

gcc/testsuite/gcc.dg/pie-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fPIE" } */
3 /* { dg-require-effective-target pie } */
4 /* { dg-skip-if "__PIC__ is always 1 for MIPS" { mips*-*-* } } */
5 /* { dg-skip-if "__PIE__ is often not defined on darwin" { *-*-darwin* } } */
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