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

extern int preload (int);

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

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

  return res != 92;
}

extern int foo (int a);
int
foo (int a)
{
  return a;
}