summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20030708-1.c
blob: 344bb4e18d4c75024c4e955c3e768dbae5b9cdfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR c/11420 */
/* { dg-do link { target fpic } } */
/* { dg-options "-O2 -fpic" } */

void (* volatile fn) (void);
static void foo (void)
{
}

int main (void)
{
  fn = foo;
  return 0;
}