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/] [unify2.C] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do assemble  }
// { dg-do assemble  }
template 
template 
struct S
struct S
{
{
  typedef T S_Type;
  typedef T S_Type;
};
};
template 
template 
void foo(typename S::S_Type)
void foo(typename S::S_Type)
{
{
}
}
template 
template 
void foo(T)
void foo(T)
{
{
}
}
struct S2 {};
struct S2 {};
void bar()
void bar()
{
{
  foo(S2()); // We can't unify with the first foo, so we get the second.
  foo(S2()); // We can't unify with the first foo, so we get the second.
}
}
 
 

powered by: WebSVN 2.1.0

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