Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
decomp27.C
blob: a28f500c038ef7627756a4006f17bb547c27f666 [
file
] [
log
] [
blame
]
// PR c++/80084
// { dg-do run { target c++17 } }
struct
A
{
A
()
{
}
A
(
const
A
&)
{
}
};
struct
B
{
A a
;
};
void
f
(
B b
)
{
auto
&
[
a
]
=
b
;
if
(&
a
!=
&
b
.
a
)
__builtin_abort
();
}
int
main
()
{
f
(
B
());
}