aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/decomp51.C
blob: fe8b998abc8930b5e236a83f40d74859a79a4d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/94571
// { dg-do compile { target c++17 } }

void
foo ()
{
  int e[2], f[2];
  auto [a,b] = e, [c,d] = f;	// { dg-error "expected ';' before ',' token" }
}

void
bar ()
{
  int e[2];
  auto [a, b] = e );		// { dg-error "expected ';' before '\\\)' token" }
}