1 // RUN: %clang_cc1 -std=c++20 -verify %s
3 /// This test case used to crash in constant evaluation
4 /// because of the two-dimensional array with an array
7 /// expected-no-diagnostics
14 constexpr int get_int() const {
19 static constexpr Foo bar
[2][1] = {
22 static_assert(bar
[0][0].a
== 5);
23 static_assert(bar
[1][0].a
== 5);