summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pie-1.c
blob: 3f6e3716682ee6a43b3c9f0a441cffc6bc2d6b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { 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