aboutsummaryrefslogtreecommitdiff
path: root/elf/nodlopen2.c
blob: a223f36834ce1bf99f285546329e955d23dce8ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <dlfcn.h>
#include <stdio.h>

int
main (void)
{
  if (dlopen ("nodlopenmod2.so", RTLD_LAZY) != NULL)
    {
      puts ("opening \"nodlopenmod2.so\" succeeded, FAIL");
      return 1;
    }

  puts ("opening \"nodlopenmod2.so\" failed, OK");
  return 0;
}