1 // PR c++/78931
2 // { dg-do run { target c++11 } }
3 // { dg-options "" }
4
5 int
main()6 main ()
7 {
8 int x = 99;
9 struct S { int &x; };
10 S s{x};
11 auto [p] = s; // { dg-warning "structured bindings only available with" "" { target c++14_down } }
12 return p - 99;
13 }
14