OSDN Git Service

no -pedantic
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Mar 2000 08:48:08 +0000 (08:48 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Mar 2000 08:48:08 +0000 (08:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32279 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.old-deja/g++.mike/net34.C

index f723d74..dada4cd 100644 (file)
@@ -1,3 +1,5 @@
+// Special g++ Options:
+
 #include <iostream.h>
 
 class foo {
@@ -23,8 +25,8 @@ class multiple : public bar_1, public bar_2 {
 public:
         multiple(int i1, int i2) : bar_1(i1), bar_2(i2) {}
         void print() {
-                cout << "bar_1::k -> " << ((bar_1 *)this)->k << "\n";
-                cout << "bar_2::k -> " << ((bar_2 *)this)->k << "\n";
+                cout << "bar_1::k -> " << bar_1::k << "\n";
+                cout << "bar_2::k -> " << bar_2::k << "\n";
                 cout << "bar_1::get_k() -> " << bar_1::get_k() << "\n";
                 cout << "bar_2::get_k() -> " << bar_2::get_k() << "\n";
         }