comparison gcc/testsuite/g++.dg/cpp1z/constexpr-if4.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
2 // { dg-options "-w" } 2 // { dg-options "-w" }
3 3
4 void f() 4 void f()
5 { 5 {
6 goto l; // { dg-message "from here" } 6 goto l; // { dg-message "from here" }
7 if constexpr (false) // { dg-message "enters constexpr if" } 7 if constexpr (false) // { dg-message "enters 'constexpr if'" }
8 { 8 {
9 l:; // { dg-error "jump to label" } 9 l:; // { dg-error "jump to label" }
10 } 10 }
11 } 11 }