1 // RUN: %clang_cc1 -std=c++20 -verify %s
2 // RUN: %clang_cc1 -std=c++20 -verify -fexperimental-new-constant-interpreter %s
5 // This test makes sure that a single element array doesn't produce
6 // spurious errors during constexpr evaluation.
8 // expected-no-diagnostics
12 constexpr S() { Arr
[0] = Sub
{}; }
16 constexpr bool test() {
21 static_assert(test());