URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memtemp17.C] - Rev 716
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do link }
// GROUPS passed templates membertemplates
extern "C" int printf(const char*, ...);
template <class V>
struct S {
template <class T, class U>
S(T, U, T);
};
template <class V>
template <class T, class U>
S<V>::S(T t1, U u1, T t2)
{
printf("Hello, world.\n");
}
int main()
{
S<int> s1(3, "abc", 3);
S<int> s2('a', s1, 'a');
S<char> s3("abc", 3, "abc");
}
Go to most recent revision | Compare with Previous | Blame | View Log