* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / implicit-trivial1.C
blobe63bd3435a22b160b858bd4e8f453ee11d7ea7e3
1 // PR c++/46807
2 // { dg-options -std=c++98 }
3 // In C++98/03, B::B(const B&) is trivial because A::A(const A&) is trivial,
4 // even though doing overload resolution would mean calling the template
5 // constructor.  In C++0x, we do overload resolution to determine triviality.
7 struct A
9   A() {}
10 private:
11   template <class T> A(T&);
14 struct B
16   mutable A a;
19 int main()
21   B b;
22   B b2(b);