summaryrefslogtreecommitdiff
path: root/libexec/ld.so/test
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ld.so/test')
-rw-r--r--libexec/ld.so/test/A.C26
-rw-r--r--libexec/ld.so/test/a.h14
-rw-r--r--libexec/ld.so/test/tst.C7
3 files changed, 47 insertions, 0 deletions
diff --git a/libexec/ld.so/test/A.C b/libexec/ld.so/test/A.C
new file mode 100644
index 00000000000..c7816bab71e
--- /dev/null
+++ b/libexec/ld.so/test/A.C
@@ -0,0 +1,26 @@
+#include "iostream.h"
+#include "a.h"
+
+AA::AA()
+{
+ cout << "A constructor\n";
+}
+AA::~AA()
+{
+ cout << "A destructor\n";
+}
+
+AA a;
+AA d;
+/*
+AA f;
+*/
+
+B::B()
+{
+ cout << "B constructor\n";
+}
+B::~B()
+{
+ cout << "B destructor\n";
+}
diff --git a/libexec/ld.so/test/a.h b/libexec/ld.so/test/a.h
new file mode 100644
index 00000000000..0cdaefe8777
--- /dev/null
+++ b/libexec/ld.so/test/a.h
@@ -0,0 +1,14 @@
+class B {
+public:
+ B();
+ ~B();
+ int i;
+};
+
+class AA {
+ B b;
+public:
+ AA();
+ ~AA();
+ int i;
+};
diff --git a/libexec/ld.so/test/tst.C b/libexec/ld.so/test/tst.C
new file mode 100644
index 00000000000..64a222f21f0
--- /dev/null
+++ b/libexec/ld.so/test/tst.C
@@ -0,0 +1,7 @@
+#include "iostream.h"
+#include "a.h"
+
+AA b;
+main()
+{
+}