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
/
redundant-assign-zero-2.c
blob
4a5b7804922e4200ea859562ad0ef9328dc74078
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-fre -fdump-tree-dse-details" } */
3
4
#include <string.h>
5
6
void
blahd
(
double
*);
7
8
void
fubar
()
9
{
10
double
d
;
11
double
*
x
= &
d
;
12
13
memset
(&
d
,
0
,
sizeof
d
);
14
*
x
=
0.0
;
15
blahd
(
x
);
16
}
17
18
/* { dg-final { scan-tree-dump-times "Deleted redundant store" 1 "dse1"} } */