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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memtemp93.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do link  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <int n> struct A { 
  template <class T> A (T t);
  template <class T> int f(T t) const; 
}; 

template <> template<class T> int A<1>::f(T t) const {return 1;} 
template <> template<class T> A<1>::A (T t) {}

int main() { 
  A<1> a (3);
  a.f(1);
  return 0; 
}

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.