blob: 7435adce2c0fae6944df3da704c7e412feccacd3 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <dlfcn.h>
2#include <stdio.h>
3
4int
5foo (int i)
6{
7 if (dlsym (RTLD_DEFAULT, "unload7_nonexistent_symbol") == NULL)
8 return 1;
9 puts ("dlsym returned non-NULL");
10 return 0;
11}