aboutsummaryrefslogtreecommitdiff
path: root/dlfcn/bug-dlopen1.c
diff options
context:
space:
mode:
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 0000000..d91810a
--- /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;
+}