blob: cfc0e4a4cb0b7322b50bbbe7c63edb26254e5577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct adaptor_base {};
struct bound_argument {
bound_argument();
};
struct adaptor_functorint : public adaptor_base {};
struct adaptsint : public adaptor_base {
adaptsint(const int& _A_functor);
adaptor_functorint functor_;
};
struct adaptor_functor_adaptsint {
adaptor_functor_adaptsint(const adaptsint& _A_functor) : functor_(_A_functor)
{}
adaptsint functor_;
bound_argument bound_;
};
struct adapts_adaptsint {
adapts_adaptsint(const adaptsint& _A_functor) : functor_(_A_functor)
{}
adaptor_functor_adaptsint functor_;
};
int main() {
adapts_adaptsint a (adaptsint(1));
}
|