summaryrefslogtreecommitdiff
path: root/test/dlopen/libB.c
diff options
context:
space:
mode:
authorFilippo ARCIDIACONO <filippo.arcidiacono@st.com>2012-01-23 17:01:58 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2012-02-07 17:11:47 +0100
commitac33828db194ddd8dc112439cf0d1d935e4e1452 (patch)
tree30ed7a63a428c242c4036c586c61b26eef0a0af1 /test/dlopen/libB.c
parentcf068ce38bc17230fd60adb10b4cf70ead7e7cd0 (diff)
tests:libdl: add a new test for symbol scope issue in dlclose
Test case to trigger an issue raised by the new symbol scope design, that was erroneously removing local symbol scope from the global one too early while dl-closing a shared library. Based on original test-case by Khem Raj Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Reported-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'test/dlopen/libB.c')
-rw-r--r--test/dlopen/libB.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/dlopen/libB.c b/test/dlopen/libB.c
new file mode 100644
index 000000000..9b9fff41c
--- /dev/null
+++ b/test/dlopen/libB.c
@@ -0,0 +1,7 @@
+extern void libC_func(void);
+
+void libB_func(void);
+void libB_func(void)
+{
+ libC_func();
+}