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/] [spec13.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
template 
3
void f(T t);
4
 
5
template 
6
void f(T* t);
7
 
8
template <>
9
void f(int* ip) {}
10
 
11
struct S1
12
{
13
  template 
14
  void f(T t);
15
 
16
  template 
17
  void f(T* t);
18
};
19
 
20
template <>
21
void S1::f(int* ip) {}
22
 
23
template 
24
struct S2
25
{
26
  template 
27
  void f(T t);
28
 
29
  template 
30
  void f(T* t);
31
};
32
 
33
template <>
34
template <>
35
void S2::f(int* ip) {}
36
 
37
int main()
38
{
39
  int* ip;
40
  S1 s1;
41
  s1.f(ip);
42
  S2 s2;
43
  s2.f(ip);
44
}

powered by: WebSVN 2.1.0

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