view gcc/testsuite/g++.dg/cpp0x/enum40.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++/90995
// { dg-do compile { target c++11 } }

void
foo ()
{
  enum : int a alignas;		// { dg-error "expected" }
}

void
bar ()
{
  enum : int a;			// { dg-error "expected" }
}

void
baz ()
{
  enum class a : int b alignas;	// { dg-error "expected" }
}

void
qux ()
{
  enum class a : int b;		// { dg-error "expected" }
}