* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-70265-2.C
blobfc360f1a9bbd58d51377d4fa3cce85c777e0869c
1 // PR c++/70265
2 // { dg-do compile { target c++14 } }
4 constexpr int
5 foo (int p)
7   int t = 0;
8   while (1)
9     t = 0;  // { dg-error "count exceeds" }
10   return t;
13 static_assert (foo (1) == 0, "");  // { dg-error "non-constant" }