summaryrefslogtreecommitdiff
path: root/elf/preloadtest.c
blob: 7ea10b9b5bd011036c84679331cc0a0942930a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

#include "testobj.h"

int
main (void)
{
  int res = preload (42);

  printf ("preload (42) = %d, %s\n", res, res == 92 ? "ok" : "wrong");

  return res != 92;
}

int
foo (int a)
{
  return a;
}