summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pic-4.c
blob: d6d9dc90046017b18a870d8b9eae6d7307dbaadb (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile { target { ! { *-*-darwin* hppa*64*-*-* mips*-*-linux-* amdgcn*-*-* } } } } */
/* { dg-options "-fno-PIC" } */

#ifdef __PIC__
# error __PIC__ is defined!
#endif

#ifdef __PIE__
# error __PIE__ is defined!
#endif