summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/enum1.C
blob: f692991a44242fa9e3232d415d0d44ad0942ff1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern "C" void abort();

struct A
{
  enum { a = 3}* p;
  int f() { return (int) a; }
};

int main()
{
  A a;

  if (a.f() != 3)
    abort();
}