blob: 9cc5f4a3ffe34482c35d803fc9b7a362160777c2 [file] [log] [blame]
#include <iostream.h>
struct foo {
foo(int x) { cerr << "foo's int constructor (" << x << ")\n"; };
};
struct bar : foo {
typedef int an_int;
bar() : bar::an_int(3) {}; // will call foo::foo(3)
};
int main() { bar b; }