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/] [memtemp23.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do link }
// GROUPS passed templates membertemplates
extern "C" int printf(const char*, ...);
template <class X>
struct S
{
S()
{ printf ("In S::S()\n"); f(3); }
S(char)
{ printf ("In S::S(char)\n"); f(*this); }
template <class U>
void f(U u)
{ printf ("In S::f(U)\nsizeof(U) == %d\n", sizeof(u)); }
int c[16];
};
int main()
{
S<char*> s;
}