summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/m3.C
blob: 788a021ce750c489a54de1af00e9d83ab61849fa (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }

struct A { A() { a = 2; } int a; };

struct B {
  struct A { A() { a = 2; } int a; };
  A aa;
};
char xx[]="../tests/m3.cc:4: redefinition of `struct A'";