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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [defarg5.C] - Rev 823

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

// { dg-do assemble  }

template <int dim>
class Point {
  public:
    Point (Point<dim> &);
    Point<dim> & operator = (Point<dim> &);
};



template <int dim>
class bar{
  public:
    void foo (Point<dim> p = Point<dim>());
};



template <>
void bar<2>::foo (Point<2> p) {
  const int dim = 2;
  Point<dim> q = p;
}

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

powered by: WebSVN 2.1.0

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