summaryrefslogtreecommitdiff
path: root/elf/tst-audit9.c
blob: 7b90a5ad2d9fd1817bc508d0141a736879bb4d40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <dlfcn.h>

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

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"