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++.other/] [dtor3.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
struct S1
{
~S1(int); // { dg-error "" } destructors may not have parameters
};
template <class T>
struct S2
{
~S2(int); // { dg-error "" } destructors may not have parameters
};
struct S3
{
~S3(double) {} // { dg-error "" } destructors may not have parameters
};
template <class T>
struct S4
{
~S4(double) {} // { dg-error "" } destructors may not have parameters
};
struct S5
{
~S5();
};
S5::~S5(float) // { dg-error "" } destructors may not have parameters
{
}
template <class T>
struct S6
{
~S6();
};
template <class T>
S6<T>::~S6(float) // { dg-error "" } destructors may not have parameters
{
}
Go to most recent revision | Compare with Previous | Blame | View Log