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
/
reassoc-1.c
blob
f0c9014cc6ea8b25df66c28109ec214cb74b8ab6
1
/* { dg-do run } */
2
3
int
x
;
4
5
int
__attribute__
((
noinline
))
6
foo
(
int
a
,
int
b
,
int
w
)
7
{
8
int
tmp1
=
a
*
w
;
9
int
tmp2
=
b
*
w
;
10
x
=
tmp1
;
11
return
tmp1
+
tmp2
;
12
}
13
14
extern
void
abort
(
void
);
15
16
int
main
()
17
{
18
if
(
foo
(
1
,
2
,
3
) !=
9
)
19
abort
();
20
if
(
x
!=
3
)
21
abort
();
22
return
0
;
23
}
24