summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr40031.c
blob: f6f1f65a7eeb37ffe758e0b48ce3527976196915 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile { target fpic } } */
/* { dg-options "-O2 -fPIC" } */
double c;
double d;
double *f(int a)
{
  if(a) return &c;
  return &d;
}