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++.brendan/] [template22.C] - Rev 154

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

// { dg-do run  }
// GROUPS passed templates
extern "C" int printf (const char *, ...);

template <class T>
class Foo
{
public:
  void func (int const& i);
};

template <class T>
void Foo<T>::
func (int const& i)
{}


int main ()
{ 
  Foo<int const> foo;
  printf ("PASS\n");
  return 0;
}

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.