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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
template 
4
struct S
5
{
6
  typedef T S_Type;
7
};
8
 
9
 
10
template 
11
void foo(typename S::S_Type)
12
{
13
}
14
 
15
 
16
template 
17
void foo(T)
18
{
19
}
20
 
21
 
22
struct S2 {};
23
 
24
void bar()
25
{
26
  foo(S2()); // We can't unify with the first foo, so we get the second.
27
}

powered by: WebSVN 2.1.0

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