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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr94947-1.c
blob
832e40db11865a3d821080598a6a6d54e08de16f
1
/* { dg-do run } */
2
/* { dg-additional-sources "pr94947-2.c" } */
3
/* { dg-additional-options "-fipa-pta -flto-partition=1to1" } */
4
/* { dg-prune-output "warning: using serial compilation" } */
5
6
extern
void
abort
();
7
extern
void
baz
();
8
extern
void
(*
baz_call
)();
9
static int
*
p
;
10
11
static void
foo
()
12
{
13
if
(*
p
!=
1
)
14
abort
();
15
}
16
17
int
main
()
18
{
19
int
x
=
1
;
20
p
= &
x
;
21
baz_call
=
foo
;
22
baz
();
23
return
0
;
24
}