repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr45704.c
blob
487b30a96c03902e709e476a4507af89f502fa43
1
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-optimized" } */
3
4
struct
st
{
5
int
ptr
;
6
};
7
8
int
foo
(
struct
st
*
st
)
9
{
10
int
v
= *(
volatile
int
*)&
st
->
ptr
;
11
return
v
&
0xff
;
12
}
13
14
/* { dg-final { scan-tree-dump-times "={v}" 1 "optimized" } } */
15
/* { dg-final { cleanup-tree-dump "optimized" } } */