thunk2.C: Add return 0.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 6 Jul 2000 15:29:15 +0000 (15:29 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 6 Jul 2000 15:29:15 +0000 (15:29 +0000)
* g++.old-deja/g++.mike/thunk2.C: Add return 0.
* g++.old-deja/g++.mike/thunk3.C: Likewise.
* g++.old-deja/g++.other/rtti3.C: Likewise.
* g++.old-deja/g++.other/rttid3.C: Likewise.

From-SVN: r34887

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.mike/thunk2.C
gcc/testsuite/g++.old-deja/g++.mike/thunk3.C
gcc/testsuite/g++.old-deja/g++.other/rtti3.C
gcc/testsuite/g++.old-deja/g++.other/rttid3.C

index c6a053315dad8577d4b6824ca5f50f5c805de398..4da105cbb991ed7b7475935dc3db52906f31d0e1 100644 (file)
@@ -1,3 +1,10 @@
+2000-07-06  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * g++.old-deja/g++.mike/thunk2.C: Add return 0.
+       * g++.old-deja/g++.mike/thunk3.C: Likewise.
+       * g++.old-deja/g++.other/rtti3.C: Likewise.
+       * g++.old-deja/g++.other/rttid3.C: Likewise.
+
 2000-06-30  David Billinghurst  <David Billinghurst@riotinto.com.au>
 
        *  g77.f-torture/compile/20000630-1.x: Fix typo
index 9bc4558d9f7a3b63a0c003a78456791e2efbd4d4..36b9659fa41e753f56dc7afaf6fd1427be26bcb8 100644 (file)
@@ -14,6 +14,7 @@ public:
   virtual int foo() {
     if (++state != 2)
       fail = 1;
+    return 0;
   }
   virtual ~A() {
     if (++state != 3)
index 9a52c9d691627b7e9b8de3f69e6c526b78d0acee..3e97aacd6ba251c4e37428540289fbf82ee5f916 100644 (file)
@@ -12,6 +12,7 @@ public:
   virtual int foo() {
     if (++state != 2)
       fail = 1;
+    return 0;
   }
   virtual ~A() {
     if (++state != 3)
index fdb1f9e090d84d3b15061ddd2dd358baed876c1c..70f227bfbce1a6261277257faea829611b325a17 100644 (file)
@@ -12,7 +12,7 @@ extern "C" {
 class X {
  public:
   int xi;
-  virtual int f() {};
+  virtual int f() {return 0;};
 };
 
 class Y : public X {
@@ -32,13 +32,13 @@ Z *zp = &z;
 class A {
  public:
   int Ai;
-  virtual int a() {};
+  virtual int a() {return 0;};
 };
 
 class B {
  public:
   int Bi;
-  virtual int g() {};
+  virtual int g() {return 0;};
 };
 
 class D : public A, public B {
index 69b7fc5c38af771bf3cbdf8303a3da894a266e9a..80162aa45963b18afecc2f89c1f7ffec314c060d 100644 (file)
@@ -13,7 +13,7 @@ extern "C" {
 class X {
  public:
   int xi;
-  virtual int f() {};
+  virtual int f() {return 0;};
 };
 
 class Y : public X {
@@ -33,13 +33,13 @@ Z *zp = &z;
 class A {
  public:
   int Ai;
-  virtual int a() {};
+  virtual int a() {return 0;};
 };
 
 class B {
  public:
   int Bi;
-  virtual int g() {};
+  virtual int g() {return 0;};
 };
 
 class D : public A, public B {