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

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

int f1 () {
  struct A { A() { a = 2; } int a; };
  A aa;
  return aa.a;
}