diff options
Diffstat (limited to 'tests/libfoo/foo.cpp')
-rw-r--r-- | tests/libfoo/foo.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/libfoo/foo.cpp b/tests/libfoo/foo.cpp new file mode 100644 index 000000000..22be35018 --- /dev/null +++ b/tests/libfoo/foo.cpp @@ -0,0 +1,17 @@ +#include <iostream> +#include "foo.h" + +using namespace std; + +void Foo::unpureVirtual() +{ + cout << "Foo::unpureVirtual()" << endl; +} + +void Foo::callPureVirtual() +{ + cout << "Foo::callPureVirtual() -- calling pureVirtual..." << endl; + this->pureVirtual(); + cout << " -- pureVirtual called." << endl; +} + |