OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [sfinae1.C] - Diff between revs 149 and 154

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

Rev 149 Rev 154
// PR c++/14337
// PR c++/14337
template  struct Constraint;
template  struct Constraint;
template <>     struct Constraint { typedef int Result; };
template <>     struct Constraint { typedef int Result; };
template 
template 
struct IsInt      { static const bool value = false; };
struct IsInt      { static const bool value = false; };
template <>
template <>
struct IsInt { static const bool value = true; };
struct IsInt { static const bool value = true; };
template 
template 
typename Constraint::value>::Result foo(T);
typename Constraint::value>::Result foo(T);
template 
template 
typename Constraint::value>::Result foo(T);
typename Constraint::value>::Result foo(T);
template 
template 
void bar() {
void bar() {
    foo(1);
    foo(1);
}
}
 
 

powered by: WebSVN 2.1.0

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