diff options
Diffstat (limited to 'regress/libexec/ld.so/dlopen/libaa/aa.C')
-rw-r--r-- | regress/libexec/ld.so/dlopen/libaa/aa.C | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/regress/libexec/ld.so/dlopen/libaa/aa.C b/regress/libexec/ld.so/dlopen/libaa/aa.C new file mode 100644 index 00000000000..dedf9025451 --- /dev/null +++ b/regress/libexec/ld.so/dlopen/libaa/aa.C @@ -0,0 +1,29 @@ +/* + * Public Domain 2003 Dale Rahn + * + * $OpenBSD: aa.C,v 1.1 2005/09/13 20:51:39 drahn Exp $ + */ + +#include <iostream> +#include "aa.h" +int a; + +extern "C" char *libname = "libaa"; + +extern "C" void +lib_entry() +{ + std::cout << "called into aa " << libname << " libname " << "\n"; +} + +AA::AA(char *arg) +{ + a = 1; + _name = arg; +} +AA::~AA() +{ + std::cout << "dtors AA " << libname << " " << _name << "\n"; +} + +AA foo("A"); |