[gcn] install.texi: Update for new ISA targets and their requirements
[gcc.git] / gcc / testsuite / g++.dg / cpp23 / consteval-if4.C
blob2760c1c2d9732ab921c18d0b96b6be187878b582
1 // { dg-do compile { target c++20 } }
2 // { dg-options "-w" }
4 void f()
6   goto l;                       // { dg-message "from here" }
7   if consteval                  // { dg-message "enters 'consteval if'" }
8     {
9     l:;                         // { dg-error "jump to label" }
10     }
13 void g()
15   goto l;                       // { dg-message "from here" }
16   if not consteval              // { dg-message "enters 'consteval if'" }
17     {
18     l:;                         // { dg-error "jump to label" }
19     }
22 void h()
24   goto l;                       // { dg-message "from here" }
25   if consteval                  // { dg-message "enters 'consteval if'" }
26     {
27     }
28   else
29     {
30     l:;                         // { dg-error "jump to label" }
31     }
34 void i()
36   goto l;                       // { dg-message "from here" }
37   if not consteval              // { dg-message "enters 'consteval if'" }
38     {
39     }
40   else
41     {
42     l:;                         // { dg-error "jump to label" }
43     }