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/] [explicit35.C] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
struct S
{
template <class T>
void foo(T t);
};
template <>
void S::foo<int>(int i) { }
int main()
{
S s;
s.foo<int>(3.0);
}
Go to most recent revision | Compare with Previous | Blame | View Log