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/] [spec33.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do link }
// Origin: James McKelvey <mckelvey@fafnir.com>
class A
{
public:
template <class T> A(T x, bool y = false);
};
template <class T> A::A(T, bool)
{
}
template <> A::A(char, bool)
{
}
int main()
{
int b;
char c;
A x(b);
A y(c);
A z(c, false);
}