Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
pr80222.C
blob: ed1b37f5e374f01414496c99ce595fb417403462 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-O2 -fdump-tree-optimized" } */
struct
C
{
int
i
;
}
__attribute__
((
may_alias
))
;
C a
,
b
;
int
main
()
{
a
=
static_cast
<
C
&>
(
b
);
}
// { dg-final { scan-tree-dump "{ref-all}\\\)&b\];" "optimized" } } */