summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/nest5.C
blob: 892337ccf4c6bbbfe80950d1d0b80d6dd0ba73ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// GROUPS passed nest
// nest file
// From: tal@vlsi.cs.caltech.edu
// Date:     Mon, 11 Oct 93 16:26:02 -0700
// Subject:  Serious bug: g++2.4.5 -Doesn't support local classes
// Message-ID: <9310112325.AA13386@vlsi.cs.caltech.edu>

void foo() {
  class Wrapper {
  public:
    void F (void * Wrapperptr)
    {
      Wrapper * wrapptr = (  Wrapper  *) Wrapperptr;
    }
  };
}