c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-nsdmi3.C
blobec1c4e533877ee42b33e7639c0e626952b05bd66
1 // PR c++/101073
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-fno-elide-constructors" }
5 struct Y
7   int a;
8 };
10 struct X
12   Y b = Y{1};
13   Y c = this->b;
16 constexpr X o = { };
17 static_assert(o.b.a == 1 && o.c.a == 1, "");