summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/enum1.C
blob: 7d54c664da15d0306c62d67b5468b0c38a58c4b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// GROUPS passed enums
class X {
  struct X1;
  enum { A= sizeof(X1 *) };     //Causes a problem.
  struct X1 { int i; };
  X1 *f(X1 *);
public:
  X(void);
};

X::X1 *X::f(X1 *x) {
  return x;
}