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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [spec13.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do run  }
// { dg-do run  }
template 
template 
void f(T t);
void f(T t);
template 
template 
void f(T* t);
void f(T* t);
template <>
template <>
void f(int* ip) {}
void f(int* ip) {}
struct S1
struct S1
{
{
  template 
  template 
  void f(T t);
  void f(T t);
  template 
  template 
  void f(T* t);
  void f(T* t);
};
};
template <>
template <>
void S1::f(int* ip) {}
void S1::f(int* ip) {}
template 
template 
struct S2
struct S2
{
{
  template 
  template 
  void f(T t);
  void f(T t);
  template 
  template 
  void f(T* t);
  void f(T* t);
};
};
template <>
template <>
template <>
template <>
void S2::f(int* ip) {}
void S2::f(int* ip) {}
int main()
int main()
{
{
  int* ip;
  int* ip;
  S1 s1;
  S1 s1;
  s1.f(ip);
  s1.f(ip);
  S2 s2;
  S2 s2;
  s2.f(ip);
  s2.f(ip);
}
}
 
 

powered by: WebSVN 2.1.0

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