summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20030708-1.c
blob: d0b5b2bd2b908287f27e18714b0fbc6103a86811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR c/11420 */
/* { dg-do link } */
/* { dg-options "-O2 -fpic" } */
/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */

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

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