aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/decomp23.C
blob: 9e9278050c980015f1c7f23336bc0d335689d475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/79205
// { dg-do compile { target c++11 } }
// { dg-options "" }

#include <tuple>

int
foo (std::tuple<int> t)
{
  auto [x0] = t;	// { dg-warning "structured bindings only available with" "" { target c++14_down } }
  return x0;
}