aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/constexpr-nonlit3.C
blob: 2238db911571fc59d6a83c0073c7b41ca3b75395 (plain)
1
2
3
4
5
6
7
8
9
10
// P2242R3
// { dg-do compile { target c++14 } }

constexpr int
foo ()
{
  goto lab;	// { dg-error "'goto' in 'constexpr' function only available with" "" { target c++20_down } }
lab:
  return 1;
}