summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/enum7.C
blob: 407672a4799685ec90a0a3b325e8538e039a47df (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/37816
// { dg-options "-std=c++0x" }

class A
{
  enum class Color { Red, Orange, Yellow, Green, Blue, Violet };
  enum class Alert { Green, Yellow, Red };
  static const Color x = Red;	// { dg-error "" }
  static const Color y = Color::Red;
  static const Alert z = Alert::Red;
};