Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
aggr14.C
blob: 538b467d467f0c1f8da3a683986f1752bc586b15 [
file
] [
log
] [
blame
]
// PR c++/93790 - wrong paren-init of aggregates interference.
// { dg-do compile }
struct
S
{};
class
S_refwrap
{
S
&
Sref_
;
public
:
S_refwrap
(
S
&
Sref
)
:
Sref_
(
Sref
)
{}
operator
S
&()
{
return
Sref_
;
}
};
S s
;
S_refwrap r
(
s
);
S
&
s2
(
r
);