]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-92015.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-92015.C
CommitLineData
5b884e94
JJ
1// PR c++/92015
2// { dg-do compile { target c++11 } }
3
4struct S1 { char c[6] {'h', 'e', 'l', 'l', 'o', 0}; };
5struct S2 { char c[6] = "hello"; };
6static_assert (S1{}.c[0] == 'h', "");
7static_assert (S2{}.c[0] == 'h', "");
This page took 0.279006 seconds and 5 git commands to generate.