aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/const14.C
blob: f29c7e58cfcdf2e776a17e91125a754d20696a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/91529
// { dg-do run }
// { dg-additional-options -fmerge-all-constants }

struct A
{
  int i[2];
  ~A() { i[0] = 0; }
};

int main()
{
  const A a = { 1,2 };
}