comparison gcc/testsuite/g++.dg/init/const14.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 // PR c++/91529
2 // { dg-do run }
3 // { dg-additional-options -fmerge-all-constants }
4
5 struct A
6 {
7 int i[2];
8 ~A() { i[0] = 0; }
9 };
10
11 int main()
12 {
13 const A a = { 1,2 };
14 }