testsuite: 32 bit AIX 2 byte wchar
[official-gcc.git] / gcc / testsuite / g++.dg / cpp23 / consteval-if9.C
blob1c7db1ac906f14854ff3f2ebf091f4e2b60e46a5
1 // { dg-do compile { target c++20 } }
2 // { dg-options "-w" }
4 constexpr void f(int i)
6   switch (i)
7     if consteval                // { dg-message "enters 'consteval if'" }
8       {
9       case 42:;                 // { dg-error "jump to case label" }
10       }