aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/decomp53.C
blob: b34e6ac7250fa8505baa5f0f19766f8b2b9987d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/95328
// { dg-do compile { target c++11 } }
// { dg-options "" }

template <typename T>
struct S
{
  int a, b;
};

template <typename T>
void
foo ()
{
  auto [a, b] = S<int>();	// { dg-warning "structured bindings only available with" "" { target c++14_down } }
}

int
main ()
{
  foo<int> ();
}