URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [template24.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed templates
extern "C" int printf (const char *, ...);
template <class F>
class Temp
{
F func_;
public:
Temp (F f) :func_(f) {}
};
int func (int h = 1, int z = 2) { return h+z; }
int main ()
{
Temp<int(*)(int, int)> temp (func);
printf ("PASS\n");
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log