summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/enum7.C
blob: 1511c79c6cc44d2fd8e7ed9b0d1ea95b6b13226c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// GROUPS passed enums
// friends file
// From: offline!marc@ai.mit.edu (Marc Duponcheel) (Marc Duponcheel)
// Date:     Sat, 6 Feb 93 23:31:22 PST
// Subject:  some 2.2.2 bugs
// Message-ID: <9302070731.AA002jw@offline.UUCP>

class X
{
        enum E { A, B };
static enum E   e;
};
enum X::E X::e = A;