aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-03-01 03:48:08 -0500
committerJason Merrill <jason@gcc.gnu.org>2000-03-01 03:48:08 -0500
commitbcdaabbb07577c2a27318b659a936a2ae318b2de (patch)
tree200f1363bdf7f6b1c1ba9af6bec8ef739b819ad9 /gcc
parent9ab476b27c06c7468109a2c882be69cd395c2446 (diff)
downloadgcc-bcdaabbb07577c2a27318b659a936a2ae318b2de.zip
gcc-bcdaabbb07577c2a27318b659a936a2ae318b2de.tar.gz
gcc-bcdaabbb07577c2a27318b659a936a2ae318b2de.tar.bz2
no -pedantic
From-SVN: r32279
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/net34.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/net34.C b/gcc/testsuite/g++.old-deja/g++.mike/net34.C
index f723d74..dada4cd 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/net34.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/net34.C
@@ -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";
}