about summary refs log tree commit diff
path: root/elf/nodlopen.c
blob: 642bdb3011a16189df248494fe9418a00c0500ae (plain) (blame)
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 ("nodlopenmod.so", RTLD_LAZY) != NULL)
    {
      puts ("opening \"nodlopenmod.so\" succeeded, FAIL");
      return 1;
    }

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