aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb69.C
blob: 9cc5f4a3ffe34482c35d803fc9b7a362160777c2 (plain)
1
2
3
4
5
6
7
8
9
        #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; }