summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum8.C
blob: ecf6fbf4eceb50a8cb6d4cef3a318c4f27ad0f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do assemble  }
// GROUPS passed enums
class foo1
{
 public:
   enum foo1_enum
   {
      ENUM1,
      ENUM2, // { dg-error "comma at end" }
   };
};

   
class foo2 
{
 private:
   enum foo1::foo1_enum	Enum;
};


class foo3
{
 private:
   foo1::foo1_enum Enum;
};