Optimize x86-64 SSE4.2 strcmp.
[glibc.git] / dlfcn / failtestmod.c
bloba03f90b734132d8d7b17d5b41e824e8edf71e3db
1 #include <dlfcn.h>
2 #include <stdio.h>
5 extern void constr (void) __attribute__ ((__constructor__));
6 void
7 __attribute__ ((__constructor__))
8 constr (void)
10 void *handle;
11 void *m;
13 /* Open the library. */
14 handle = dlopen (NULL, RTLD_NOW);
15 if (handle == NULL)
17 puts ("Cannot get handle to own object");
18 return;
21 /* Get a symbol. */
22 m = dlsym (handle, "main");
23 puts ("called dlsym() to get main");
25 dlclose (handle);