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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec10.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run }
2
 
3
// Origin: Lynn Akers 
4
 
5
// PR c++/10940: Problem handling parameter list for static member
6
// that is a specialization of a member template of a template class.
7
 
8
template
9
class o
10
{
11
public:
12
  template static void do_add(T* p, T v);
13
};
14
 
15
template<>
16
template
17
inline void o<32>::do_add(T* p, T v)
18
{
19
  *p += v;
20
}
21
 
22
int main()
23
{
24
  int a = 0x1000;
25
  o<32>().do_add(&a, 0x2000);
26
  return (a != 0x3000);
27
}

powered by: WebSVN 2.1.0

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