(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp23/
consteval-if9.C
// { dg-do compile { target c++20 } }
// { dg-options "-w" }

constexpr void f(int i)
{
  switch (i)
    if consteval		// { dg-message "enters 'consteval if'" }
      {
      case 42:;			// { dg-error "jump to case label" }
      }
}