* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-70265-1.C
blobe0fcdfeb69383695ae2742027e304fa750ce4687
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)  // { dg-error "count exceeds" }
9     ;
10   return t;
13 static_assert (foo (1) == 0, "");  // { dg-error "non-constant" }