1 // PR c++/70265
2 // { dg-do compile { target c++14 } }
3 
4 constexpr int
foo(int p)5 foo (int p)
6 {
7   int t = 0;
8   while (1)  // { dg-error "count exceeds" }
9     t = 0;
10   return t;
11 }
12 
13 static_assert (foo (1) == 0, "");  // { dg-error "non-constant|in .constexpr. expansion of " }
14