blob: 074684604bc0c9eacd6d34a498968ef78ec037e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */
/* { dg-skip-if "__PIC__ is always 1 for MIPS" { mips*-*-* } } */
/* { dg-skip-if "__PIE__ is always defined for GCN" { amdgcn*-*-* } } */
/* { dg-skip-if "__PIE__ is always defined for hppa64" { hppa*64*-*-* } } */
#if defined(__CYGWIN__) || defined(__WIN32__)
# if __PIC__ != 1
# error __PIC__ is not 1!
# endif
#elif __PIC__ != 2
# error __PIC__ is not 2!
#endif
#ifdef __PIE__
# error __PIE__ is defined!
#endif
|