URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit17.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template <class T, class U>
void foo(U u, T t);
template <class T>
void foo(T t);
template <class T>
struct S {};
template <class T>
void foo(const S<T>&);
void bar()
{
void (*fn)(double, int) =
(void (*)(double, int)) &foo<int>;
void (*fn2)(double) = foo<double>;
foo<int>(3, 3.0);
foo<int>(S<int>());
}