summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pic-macro-define.c
blob: 7bda6fedfef7d5143e20b6f7bd0bd054b12f0532 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do run { target "i?86-*-*-darwin" powerpc*-*-darwin* } } */
/* { dg-options "-fPIC" } */

#if defined __PIC__ 
int main() {
	return 0;
}
#else
  error "NO __PIC__ DEFINED"	
#endif