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/] [spec13.C] - Rev 853

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

// { dg-do run  }
template <class T>
void f(T t);

template <class T>
void f(T* t);

template <>
void f(int* ip) {}

struct S1
{
  template <class T>
  void f(T t);

  template <class T>
  void f(T* t);
};

template <>
void S1::f(int* ip) {}

template <class U>
struct S2
{
  template <class T>
  void f(T t);

  template <class T>
  void f(T* t);
};

template <>
template <>
void S2<double>::f(int* ip) {}

int main()
{
  int* ip;
  S1 s1;
  s1.f(ip);
  S2<double> s2;
  s2.f(ip);
}

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.