about summary refs log tree commit diff
path: root/dlfcn/bug-dlopen1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-02-06 00:28:46 +0000
committerUlrich Drepper <drepper@redhat.com>2002-02-06 00:28:46 +0000
commit472d82fc06664bea2859cb94b4469c48af2d10d1 (patch)
tree04f72e64c13204a2216c8147ce6a6f8d2b6a3fbb /dlfcn/bug-dlopen1.c
parent37d8b77856be9eb9581c3c61d3f7193b3aec6b5c (diff)
downloadglibc-472d82fc06664bea2859cb94b4469c48af2d10d1.tar.gz
glibc-472d82fc06664bea2859cb94b4469c48af2d10d1.tar.xz
glibc-472d82fc06664bea2859cb94b4469c48af2d10d1.zip
Update.
	* dlfcn/Makefile: Add rules to build and run bug-dlopen1.
	* dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
Diffstat (limited to 'dlfcn/bug-dlopen1.c')
-rw-r--r--dlfcn/bug-dlopen1.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/dlfcn/bug-dlopen1.c b/dlfcn/bug-dlopen1.c
new file mode 100644
index 0000000000..d91810a4f0
--- /dev/null
+++ b/dlfcn/bug-dlopen1.c
@@ -0,0 +1,12 @@
+/* Test case by Bruno Haible.  It test whether the dynamic string
+   token expansion can handle $ signs which do not start one of the
+   recognized keywords.  */
+
+#include <dlfcn.h>
+
+int main (void)
+{
+  dlopen ("gnu-gettext-GetURL$1", RTLD_GLOBAL | RTLD_LAZY);
+  dlopen ("gnu-gettext-GetURL${1", RTLD_GLOBAL | RTLD_LAZY);
+  return 0;
+}