aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
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";
}