* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / DRs / dr2137-1.C
blobad6b5325a1e72884637588b106669edc2c301f91
1 // DR 2137
2 // { dg-do run { target c++11 } }
4 // Test that an initializer_list constructor beats the copy constructor.
6 #include <initializer_list>
8 bool ok = false;
10 struct Q {
11   Q() = default;
12   Q(Q const&) = default;
13   Q(Q&&) = default;
14   Q(std::initializer_list<Q>) { ok = true; }
17 int main() {
18   Q x = Q { Q() };
19   if (!ok) __builtin_abort ();