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

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

Rev 154 Rev 816
// PR c++/3870
// PR c++/3870
// Test that performing a type instantiation in order to match up a
// Test that performing a type instantiation in order to match up a
// specialization doesn't clobber last_function_parms.
// specialization doesn't clobber last_function_parms.
template 
template 
struct A { typedef int I; };
struct A { typedef int I; };
template 
template 
inline typename T::I
inline typename T::I
foo (typename T::I, const T*);
foo (typename T::I, const T*);
template <>
template <>
int foo (int i, const A*)
int foo (int i, const A*)
{
{
    return i + 1;
    return i + 1;
}
}
 
 

powered by: WebSVN 2.1.0

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