summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pic-1.c
blob: 82ba43da83e707108024ed78b7a9124a29c9b1c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target { ! { *-*-darwin* hppa*-*-* } } } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fpic" } */

#if __PIC__ != 1
# error __PIC__ is not 1!
#endif

#ifdef __PIE__
# error __PIE__ is defined!
#endif