aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/consteval-if8.C
blob: 36adaf92a7f1759957c068153316c3b39b6866bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile { target c++20 } }
// { dg-options "-w" }

void f()
{
  if consteval
    {
    l:;				// { dg-error "jump to label" }
    }
  else
    {
      goto l;			// { dg-message "from here" }
    }
}