URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit31.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template <class T>
struct S
{
template <class U>
static double foo(U u) { return (double) u; }
};
int main()
{
double d = S<int>::foo<char>(3.3);
return (d >= 3.1);
}
Go to most recent revision | Compare with Previous | Blame | View Log