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-1.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
};
5
struct bound_argument {
6
  bound_argument();
7
};
8
template  struct adaptor_functor : public adaptor_base {
9
  explicit adaptor_functor(const T_functor& _A_functor) : functor_(_A_functor)
10
{
11
  }
12
  T_functor functor_;
13
  bound_argument bound_;
14
};
15
template  struct adapts : public adaptor_base {
16
  explicit adapts(const T_functor& _A_functor) : functor_(_A_functor) {
17
  }
18
  adaptor_functor functor_;
19
};
20
int main() {
21
  adapts > a (adapts(1));
22
}
23
 
24
 

powered by: WebSVN 2.1.0

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