Updated to fedora-glibc-20060831T0640
[glibc.git] / elf / tst-addr1.c
blob3a2cbb668f4e3e4d3cece15594e614770f8eb332
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <string.h>
5 static int
6 do_test (void)
8 Dl_info i;
9 if (dladdr (&printf, &i) == 0)
11 puts ("not found");
12 return 1;
14 printf ("found symbol %s in %s\n", i.dli_sname, i.dli_fname);
15 return i.dli_sname == NULL || strcmp (i.dli_sname, "printf") != 0;
18 #define TEST_FUNCTION do_test ()
19 #include "../test-skeleton.c"