* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-init3.C
blob49ebde7ff6beda778a1e0aec5e743a9c3268f608
1 // N3648: capture init at non-block scope
2 // { dg-options "-w" }
3 // { dg-do run { target c++14 } }
5 int i = 42;
6 int j = [x=i]{ return x; }();
8 int main()
10   if (j != 42) __builtin_abort();