summary refs log tree commit diff
path: root/elf/tst-audit9.c
blob: 0982d8b7161aa4178e9f188f3f9fce4ea57d9ef8 (plain) (blame)
1
2
3
4
5
6
7
8
#include <dlfcn.h>

int main(void)
{
  void *h = dlopen("$ORIGIN/tst-auditmod9b.so", RTLD_LAZY);
  int (*fp)(void) = dlsym(h, "f");
  return fp() - 1;
}