1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 struct adaptor_base {};
4 struct bound_argument {
7 struct adaptor_functorint : public adaptor_base {};
8 struct adaptsint : public adaptor_base {
9 adaptsint(const int& _A_functor);
10 adaptor_functorint functor_;
12 struct adaptor_functor_adaptsint {
13 adaptor_functor_adaptsint(const adaptsint& _A_functor) : functor_(_A_functor)
16 bound_argument bound_;
18 struct adapts_adaptsint {
19 adapts_adaptsint(const adaptsint& _A_functor) : functor_(_A_functor)
21 adaptor_functor_adaptsint functor_;
24 adapts_adaptsint a (adaptsint(1));