blob: 5d7428c1bb584e24063fdf257f5bf8cfa1b54123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// { 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");
}
|