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
* fi.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr70920-4.c
blob
e9c2b9587e578167d0aead5b68d4317ade00d5ee
1
/* { dg-do compile } */
2
/* { dg-require-effective-target lp64 } */
3
/* { dg-options "-O2 -fdump-tree-forwprop-details -Wno-int-to-pointer-cast" } */
4
5
#include <stdint.h>
6
7
void
f1
();
8
void
f2
();
9
10
void
11
foo
(
int
a
)
12
{
13
void
*
cst
=
0
;
14
if
((
int
*)
a
==
cst
)
15
{
16
f1
();
17
if
(
a
)
18
f2
();
19
}
20
}
21
22
/* { dg-final { scan-tree-dump "if \\(_\[0-9\]* == 0\\)" "forwprop1" } } */