summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lookup22.C
blob: 5246fab344d2188ad882fa6549d2ebc33d01acc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// Origin: GerhardTonn@gmx.de 

struct super {
  union {
    int myName;     
    void* secondMember;         
  };
};

struct sub : super {
  int myName() { return 1; }
};