Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
return3.C
blob: 6627fd1691192f9c4d2daabc0144c8cde0190aa7 [
file
] [
log
] [
blame
]
// { dg-do run }
// PRMS id: 10912
struct
A
{
A
()
{
i
=
10
;
}
int
i
;
};
struct
B
:
public
A
{};
B b
;
A f
()
{
return
b
;
}
int
main
()
{
A a
=
f
();
return
a
.
i
!=
10
;
}