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