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++.law/] [virtual2.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed virtual-functions
// Not in g++ bugs snapshot
// From: grande@isi.edu (Jim Grande)
// Subject: g++ 2.3.3 (HPPA) virt class definition dumps core
// Date: 5 Mar 1993 22:51:14 -0500
// Message-ID: <23611@venera.isi.edu>
#include <stdio.h>
class doubleclass
{
public:
double d;
doubleclass(double x = 0) { d = x; }
};
class test
{
doubleclass doublec;
};
class vderived : virtual public test
{
};
int main()
{
vderived v;
printf ("PASS\n");
}
Go to most recent revision | Compare with Previous | Blame | View Log