Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pic-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-require-effective-target fpic } */ | |
3 /* { dg-options "-fPIC" } */ | |
4 /* { dg-skip-if "__PIC__ is always 1 for MIPS" { mips*-*-* } } */ | |
145 | 5 /* { dg-skip-if "__PIE__ is always defined for GCN" { amdgcn*-*-* } } */ |
111 | 6 |
7 #if __PIC__ != 2 | |
8 # error __PIC__ is not 2! | |
9 #endif | |
10 | |
11 #ifdef __PIE__ | |
12 # error __PIE__ is defined! | |
13 #endif |