Sign in
gnu
/
gcc
/
57ea00136418991e847e46a6946a81a1df70c9a4
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p11144.C
blob: 69fbcda9275f24fc471d1f95a561ac7a7fbc8f71 [
file
] [
log
] [
blame
]
// { dg-do run }
// { dg-options "-O" }
// prms-id: 11144
class
Id
{
public
:
int
d_i
;
Id
(
int
i
)
:
d_i
(
i
)
{}
int
value
()
{
return
d_i
;}
}
id
(
1
);
Id
foo
()
{
return
id
;
}
int
main
()
{
const
Id
&
id1
=
foo
();
const
Id
&
id2
=
foo
();
return
&
id1
==
&
id2
;
}