2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / constexpr-if8.C
blob7efdc47070e375591eae97b4e66bedf1d2fe0395
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-w" }
4 void f()
6   if constexpr (false)
7     {
8     l:;                         // { dg-error "jump to label" }
9     }
10   else
11     {
12       goto l;                   // { dg-message "from here" }
13     }