aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/value-init1.C
blob: 1569a822f56044b2e830b8e3302c7a7da45f0a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/59659
// { dg-do compile { target c++11 } }
// { dg-options "-fdump-tree-gimple" }
// { dg-final { scan-tree-dump-times "i = 0" 0 "gimple" } }
// { dg-final { cleanup-tree-dump "gimple" } }

struct S { S () = default; S (int i); int i; };
struct A { S s[100]; };

void
foo ()
{
  A a = {{}};
}