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
c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
modref-dse-7.c
blob
85a01d30cea850ec90896cd0f2b0fb2baa010a9e
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
struct
list
4
{
5
struct
list
*
next
;
6
};
7
__attribute__
((
noinline
))
8
void
9
kill
(
struct
list
*
l
,
int
*
a
)
10
{
11
while
(
l
)
12
l
=
l
->
next
;
13
*
a
=
0
;
14
}
15
void
16
test
(
struct
list
*
l
,
int
*
a
)
17
{
18
*
a
=
12345
;
19
kill
(
l
,
a
);
20
return
;
21
}
22
/* { dg-final { scan-tree-dump-not "12345" "optimized"} } */