| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// { dg-options "-w" } |
| 3 |
|
| 4 |
void f() |
| 5 |
{ |
| 6 |
if constexpr (false) // { dg-message "enters 'constexpr if'" } |
| 7 |
{ |
| 8 |
goto l; // { dg-message "from here" } |
| 9 |
} |
| 10 |
else |
| 11 |
{ |
| 12 |
l:; // { dg-error "jump to label" } |
| 13 |
} |
| 14 |
} |