1 // { dg-do compile { target c++14 } }
3 // PR c++/78551 ICE in constexpr evaluation overwriting array
4 // intialized by string constant.
6 constexpr char Foo (char x, int ix)
13 static const char a = Foo ('a', 1);
14 static const char b = Foo ('a', 0);
16 static_assert (a == '1', "");
17 static_assert (b == 'a', "");
29 static constexpr A c{'a'};
31 static_assert (c.d[0] == 'a', "");
32 static_assert (c.d[1] == '1', "");