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

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