1*424733c1SCorentin Jabot // RUN: %clang_cc1 -std=c++2b -fsyntax-only -fexperimental-new-constant-interpreter %s -verify 2*424733c1SCorentin Jabot // RUN: %clang_cc1 -std=c++2b -fsyntax-only %s -verify 3*424733c1SCorentin Jabot // expected-no-diagnostics 4*424733c1SCorentin Jabot f()5*424733c1SCorentin Jabotconstexpr void f() { 6*424733c1SCorentin Jabot int i = 0; 7*424733c1SCorentin Jabot if consteval { 8*424733c1SCorentin Jabot i = 1; 9*424733c1SCorentin Jabot } 10*424733c1SCorentin Jabot else { 11*424733c1SCorentin Jabot i = 2; 12*424733c1SCorentin Jabot } 13*424733c1SCorentin Jabot 14*424733c1SCorentin Jabot if consteval { 15*424733c1SCorentin Jabot i = 1; 16*424733c1SCorentin Jabot } 17*424733c1SCorentin Jabot 18*424733c1SCorentin Jabot if !consteval { 19*424733c1SCorentin Jabot i = 1; 20*424733c1SCorentin Jabot } 21*424733c1SCorentin Jabot 22*424733c1SCorentin Jabot if !consteval { 23*424733c1SCorentin Jabot i = 1; 24*424733c1SCorentin Jabot } 25*424733c1SCorentin Jabot else { 26*424733c1SCorentin Jabot i = 1; 27*424733c1SCorentin Jabot } 28*424733c1SCorentin Jabot } 29