repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[gcn] install.texi: Update for new ISA targets and their requirements
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp23
/
consteval-if9.C
blob
1c7db1ac906f14854ff3f2ebf091f4e2b60e46a5
1
// { dg-do compile { target c++20 } }
2
// { dg-options "-w" }
3
4
constexpr void f(int i)
5
{
6
switch (i)
7
if consteval // { dg-message "enters 'consteval if'" }
8
{
9
case 42:; // { dg-error "jump to case label" }
10
}
11
}