Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-loop6.C
blob: e49e53193d1c0a6a660c91934ff796974d073336 [
file
] [
log
] [
blame
]
// PR c++/65970
// { dg-do compile { target c++14 } }
// { dg-options -fconstexpr-loop-limit=5 }
constexpr
int
foo
()
{
while
(
true
)
// { dg-error "-fconstexpr-loop-limit" }
;
return
0
;
}
constexpr
int
i
=
foo
();
// { dg-message "" }