Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pic-2.c
blob24260538cc0a5f8c14ef95eaae021534fa5a1094
1 /* { dg-do compile } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-options "-fPIC" } */
4 /* { dg-skip-if "__PIC__ is always 1 for MIPS" { mips*-*-* } } */
5 /* { dg-skip-if "__PIE__ is always defined for GCN" { amdgcn*-*-* } } */
7 #if defined(__CYGWIN__) || defined(__WIN32__)
8 # if __PIC__ != 1
9 # error __PIC__ is not 1!
10 # endif
11 #elif __PIC__ != 2
12 # error __PIC__ is not 2!
13 #endif
15 #ifdef __PIE__
16 # error __PIE__ is defined!
17 #endif