1 // { dg-do run  }
2 // GROUPS passed virtual-functions
3 // Not in g++ bugs snapshot
4 // From: grande@isi.edu (Jim Grande)
5 // Subject: g++ 2.3.3 (HPPA) virt class definition dumps core
6 // Date: 5 Mar 1993 22:51:14 -0500
7 // Message-ID: <23611@venera.isi.edu>
8 
9 #include <stdio.h>
10 
11 class doubleclass
12 {
13 	public:
14 		double	d;
15 		doubleclass(double x = 0)	{ d = x; }
16 };
17 
18 class test
19 {
20 	doubleclass doublec;
21 };
22 
23 class vderived : virtual public test
24 {
25 };
26 
main()27 int main()
28 {
29 	vderived v;
30 
31 	printf ("PASS\n");
32 }
33