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 "" }