Fix {INLINE,INTERNAL}_SYSCALL macros for x32
[glibc.git] / elf / tst-leaks1.c
blobd67e8269c4c122577375dbf43fc823e521051063
1 #include <stdio.h>
2 #include <dlfcn.h>
3 #include <mcheck.h>
4 #include <stdlib.h>
6 static int
7 do_test (void)
9 mtrace ();
11 int ret = 0;
12 for (int i = 0; i < 10; i++)
14 void *h = dlopen (i < 5 ? "./tst-leaks1.c"
15 : "$ORIGIN/tst-leaks1.o", RTLD_LAZY);
16 if (h != NULL)
18 puts ("dlopen unexpectedly succeeded");
19 ret = 1;
20 dlclose (h);
24 return ret;
27 #include <support/test-driver.c>