diff options
Diffstat (limited to 'testsuites/libtests/dl05/dl-cpp.cpp')
-rw-r--r-- | testsuites/libtests/dl05/dl-cpp.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuites/libtests/dl05/dl-cpp.cpp b/testsuites/libtests/dl05/dl-cpp.cpp new file mode 100644 index 0000000000..fcb9e0af06 --- /dev/null +++ b/testsuites/libtests/dl05/dl-cpp.cpp @@ -0,0 +1,14 @@ +/* + * The base image needs this to include the RTTI data. + */ +#include <cstdio> +#include <stdexcept> +#include "dl-load.h" +void exception_base(bool istrue) +{ + printf("exception_base called\n"); + if (istrue) + { + throw std::runtime_error("dummy call to link in symbols"); + } +} |