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

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
 
3
// Copyright (C) 2000 Free Software Foundation
4
// Contributed by Kriang Lerdsuwanakij 
5
 
6
// Bug: We used reject template unification of two bound template template
7
// parameters.
8
 
9
template  class C
10
{
11
};
12
 
13
template  void f(C c)
14
{
15
}
16
 
17
template  void f(C c)
18
{
19
}
20
 
21
template  class C, class T, class U>
22
void g(C c)
23
{
24
}
25
 
26
template  class C, class T> void g(C c)
27
{
28
}
29
 
30
int main()
31
{
32
  C c1;
33
  f(c1);
34
  g(c1);
35
  C c2;
36
  f(c2);
37
  g(c2);
38
}

powered by: WebSVN 2.1.0

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