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

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

#ifdef __PIE__
# error __PIE__ is defined!
#endif