Commit bcdaabbb by Jason Merrill

no -pedantic

From-SVN: r32279
parent 9ab476b2
// Special g++ Options:
#include <iostream.h> #include <iostream.h>
class foo { class foo {
...@@ -23,8 +25,8 @@ class multiple : public bar_1, public bar_2 { ...@@ -23,8 +25,8 @@ class multiple : public bar_1, public bar_2 {
public: public:
multiple(int i1, int i2) : bar_1(i1), bar_2(i2) {} multiple(int i1, int i2) : bar_1(i1), bar_2(i2) {}
void print() { void print() {
cout << "bar_1::k -> " << ((bar_1 *)this)->k << "\n"; cout << "bar_1::k -> " << bar_1::k << "\n";
cout << "bar_2::k -> " << ((bar_2 *)this)->k << "\n"; cout << "bar_2::k -> " << bar_2::k << "\n";
cout << "bar_1::get_k() -> " << bar_1::get_k() << "\n"; cout << "bar_1::get_k() -> " << bar_1::get_k() << "\n";
cout << "bar_2::get_k() -> " << bar_2::get_k() << "\n"; cout << "bar_2::get_k() -> " << bar_2::get_k() << "\n";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment