Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030708-1.c
blobd0b5b2bd2b908287f27e18714b0fbc6103a86811
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 } */
6 void (* volatile fn) (void);
7 static void foo (void)
11 int main (void)
13 fn = foo;
14 return 0;