mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 12:09:41 +08:00
no -pedantic
From-SVN: r32279
This commit is contained in:
parent
9ab476b27c
commit
bcdaabbb07
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user