aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/aggregate.C
blob: 8128d8de6206762ec16868c739ee5bfc9e05748c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct A { int i; };

int main()
{
  A a1 = { 42 };
  A a2 (a1);
  A a3 = { 137 };
  a1 = a3;

  if (a1.i == 137 && a2.i == 42 && a3.i == 137)
    return 0;
  return 1;
}