Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
decomp19.C
blob: e7d7abfce7c3ec848a5a66089e12a3d7db78a140 [
file
] [
log
] [
blame
]
// PR c++/78931
// { dg-do run { target c++11 } }
// { dg-options "" }
int
main
()
{
int
x
=
99
;
struct
S
{
int
&
x
;
};
S s
{
x
};
auto
[
p
]
=
s
;
// { dg-warning "structured bindings only available with" "" { target c++14_down } }
return
p
-
99
;
}