repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/79143
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if9.C
blob
748278af8c97579aa56f9fb02b6a82b9298aca42
1
// { dg-do compile { target c++11 } }
2
// { dg-options "-w" }
3
4
void f(int i)
5
{
6
switch (i)
7
if constexpr (false) // { dg-message "enters constexpr if" }
8
{
9
case 42:; // { dg-error "jump to case label" }
10
}
11
}