Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pointer-reference-alias.C
blob: 03acc79635b5ec580a6c96c328e8f07cb0c5e515 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
int
f
(
int
*
a
)
{
int
&
b
=
*
a
;
b
=
0
;
return
*
a
;
}
/* There should be only one dereferencing of a. */
/* { dg-final { scan-tree-dump-times "\\*a" 1 "optimized" } } */