view gcc/testsuite/g++.dg/cpp1z/decomp51.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// 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" }
}