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__)
9 # error __PIC__ is not 1!
12 # error __PIC__ is not 2!
16 # error __PIE__ is defined!