aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/decomp49.C
blob: 525eb45af51b8d4b1429ba92c9fbc251f77bb2e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/82075
// { dg-do run { target c++11 } }
// { dg-options "" }

struct B { };
struct D : B { int i; };

int
main ()
{
  auto [i] = D{};	// { dg-warning "only available with" "" { target c++14_down } }
  if (i != 0)
    __builtin_abort ();
}