Index: a.cpp =================================================================== --- a.cpp (revision 13674) +++ a.cpp (revision 13675) @@ -1,23 +1,12 @@ #include #include "b.h" -class X { -public: - X(int i); -}; - - -X::X(int i) { - printf("x %d\n", i); -} - int normal(int x); - int main() { - X x(3); - B b(1); +// B b(1); B *b2 = new B(2); normal(5); + b2->bar(123); } Index: b.cpp =================================================================== --- b.cpp (revision 13674) +++ b.cpp (revision 13675) @@ -5,8 +5,8 @@ x = y; printf("foo %d\n", x); } -int B::bar(int x) { - printf("bar %d\n", x); +int B::bar(int y) { + printf("bar y=%d x=%d\n", y, x); } int normal(int x) {