summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/nest1.C
blob: 842b2f692e630e5bad363588b5a6bb8d7841eb30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// GROUPS passed nested-classes
int x;
class enclose {
public:
  int x;			// { dg-error "non-static" }

  class inner {
  public:
    void f (int i) {
      x = i;// { dg-error "" } .*
    }
  };
};