OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr24351-2.C] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.