Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / derivation.cc
index 942fcd26b65206f8e3a364965073e42ea0475168..fcd57ce22ba30549671defc4209f43fccadde32b 100644 (file)
@@ -118,8 +118,37 @@ public:
     
 };
 
+class V_base
+{
+public:
+  virtual void m();
+  int base;
+};
+
+void
+V_base::m()
+{
+}
+
+class V_inter : public virtual V_base
+{
+public:
+  virtual void f();
+  int inter;
+};
+
+void
+V_inter::f()
+{
+}
 
+class V_derived : public V_inter
+{
+public:
+  double x;
+};
 
+V_derived vderived;
 
 int A::afoo() {
     return 1;
This page took 0.023706 seconds and 4 git commands to generate.