summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/enum8.C
blob: 0075e2daa8bff9a05090c328b5158b675ac2c869 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/47704
// { dg-do compile }
// { dg-options "-std=c++0x" }

void
foo ()
{
  enum class E { A, B };
  new E;
}