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