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
/
tree-ssa
/
pr97964.c
blob
0ee01965baa05f141b231006f871a08a3af9ca7a
1
/* PR tree-optimization/97964 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
/* { dg-final { scan-tree-dump-not "link_failure \\\(\\\);" "optimized" } } */
5
6
void
link_failure
(
void
);
7
8
void
9
foo
(
int
a
)
10
{
11
long
b
= -
2
;
12
int
c
=
a
>
0
;
13
int
d
=
b
*
c
;
14
int
e
=
1
-
d
;
15
int
t
= (-
1
/
e
) ==
1
;
16
if
(
t
!=
0
)
17
link_failure
();
18
}