repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge reload-branch up to revision 101000
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20030708-1.c
blob
d0b5b2bd2b908287f27e18714b0fbc6103a86811
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
}