diff options
Diffstat (limited to 'testsuite/cxx1lib1.C')
-rw-r--r-- | testsuite/cxx1lib1.C | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/cxx1lib1.C b/testsuite/cxx1lib1.C new file mode 100644 index 0000000..1eb192a --- /dev/null +++ b/testsuite/cxx1lib1.C @@ -0,0 +1,34 @@ +#include "cxx1.h" + +int A::a () +{ + return 10; +} + +int A::b () +{ + return 11; +} + +int B::a () +{ + return 12; +} + +int C::a () +{ + return 13; +} + +int C::b () +{ + return 14; +} + +void +do_check (void (*check) (A *x, B *y), A *x) +{ + B y; + + check (x, &y); +} |