summaryrefslogtreecommitdiff
path: root/test/ldso/howdy.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-08 15:47:22 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-08 15:47:22 +0000
commit183799fd6eb753239dccb0ace66412ed9c19247a (patch)
tree20cce271543b2af792473cfb993cff80dad2fffa /test/ldso/howdy.c
parentac3f49cb8024c62c4f48182371091e9a52a19273 (diff)
Add a simple test for shared lib ctor/dtors
-Erik
Diffstat (limited to 'test/ldso/howdy.c')
-rw-r--r--test/ldso/howdy.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ldso/howdy.c b/test/ldso/howdy.c
index 00a144b30..343c81d7c 100644
--- a/test/ldso/howdy.c
+++ b/test/ldso/howdy.c
@@ -5,3 +5,15 @@ int howdy(const char *s)
return printf("howdy: %s\n", s);
}
+void __attribute__((constructor)) howdy_ctor(void)
+{
+ printf("I am the libhowdy constructor!\n");
+}
+
+void __attribute__((destructor)) howdy_dtor(void)
+{
+ printf("I am the libhowdy destructor!\n");
+}
+
+
+