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++.law/] [cvt4.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed conversions
// cvt file
// Message-Id: <9308091213.AA11572@emmy.Mathematik.Uni-Dortmund.DE>
// From: Michael Strauch <strauch@emmy.mathematik.uni-dortmund.de>
// Subject: Bug in GCC 2.4.5
// Date: Mon, 9 Aug 93 14:13:50 MESZ
extern "C" int printf (const char *, ...);
int destruct = 2;
class Test{
protected:
long x;
public:
Test(){;}
Test(long l) {x=l;}
~Test() {if (--destruct == 0) printf ("PASS\n");}
};
int main()
{
long i=1;
Test t;
t=(Test)i;
}