dlopen bug test case.
authordrepper <drepper>
Wed, 6 Feb 2002 00:27:13 +0000 (00:27 +0000)
committerdrepper <drepper>
Wed, 6 Feb 2002 00:27:13 +0000 (00:27 +0000)
dlfcn/bug-dlopen1.c [new file with mode: 0644]

diff --git a/dlfcn/bug-dlopen1.c b/dlfcn/bug-dlopen1.c
new file mode 100644 (file)
index 0000000..d91810a
--- /dev/null
@@ -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;
+}