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

12 lines
240 B
C

/* { dg-do compile { target { ! { *-*-darwin* hppa*-*-* } } } } */
/* { dg-options "-fpie" } */
/* { dg-require-effective-target pie } */
#if __PIC__ != 1
# error __PIC__ is not 1!
#endif
#if __PIE__ != 1
# error __PIE__ is not 1!
#endif