gcc/testsuite/gcc.dg/pic-4.c
raw| 1 | /* { dg-do compile { target { ! { *-*-darwin* hppa*64*-*-* mips*-*-linux-* amdgcn*-*-* } } } } */ |
| 2 | /* { dg-options "-fno-PIC" } */ |
| 3 | |
| 4 | #if defined(__CYGWIN__) || defined(__WIN32__) |
| 5 | # if __PIC__ != 1 |
| 6 | # error __PIC__ is not 1! |
| 7 | # endif |
| 8 | #elif __PIC__ |
| 9 | # error __PIC__ is defined! |
| 10 | #endif |
| 11 | |
| 12 | #ifdef __PIE__ |
| 13 | # error __PIE__ is defined! |
| 14 | #endif |