gcc/testsuite/g++.dg/cpp1z/decomp44.C
raw| 1 | // PR c++/85227 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-options "" } |
| 4 | |
| 5 | extern struct A a; |
| 6 | |
| 7 | template<int> void foo() |
| 8 | { |
| 9 | auto[i] = a; // { dg-warning "incomplete" } |
| 10 | } // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 } |