1 // PR c++/95328 2 // { dg-do compile { target c++11 } } 3 // { dg-options "" } 4 5 template <typename T> 6 struct S 7 { 8 int a, b; 9 }; 10 11 template <typename T> 12 void foo()13foo () 14 { 15 auto [a, b] = S<int>(); // { dg-warning "structured bindings only available with" "" { target c++14_down } } 16 } 17 18 int main()19main () 20 { 21 foo<int> (); 22 } 23