OSDN Git Service

PR testsuite/21010
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20030708-1.c
1 /* PR c/11420 */
2 /* { dg-do link } */
3 /* { dg-options "-O2 -fpic" } */
4 /* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
5
6 void (* volatile fn) (void);
7 static void foo (void)
8 {
9 }
10
11 int main (void)
12 {
13   fn = foo;
14   return 0;
15 }