1 // RUN: %clang_cc1 -std=c++23 -fsyntax-only -fexperimental-new-constant-interpreter %s -verify
2 // RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify=ref
4 // expected-no-diagnostics
15 static_assert(f() == 1, "");
27 static_assert(f2() == 0, "");
32 if (int i
= 5; i
!= 10) {
37 static_assert(f(), "");
40 if (bool b
= false; b
) {
45 static_assert(!f2(), "");
48 constexpr int attrs() {
52 static_assert(attrs() == 1, "");