summaryrefslogtreecommitdiff
path: root/regress/libexec/ld.so/elf/foo/main.c
blob: 37b14dfd8fe86ebe7033afba9eccd6e4ff178168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Public domain. 2002, Matthieu Herrb
 *
 * $OpenBSD: main.c,v 1.1 2002/02/05 21:47:23 matthieu Exp $
 */
#include <stdio.h>
#include "elfbug.h"

int (*func)(void) = uninitialized;

int
main(int argc, char *argv[])
{
	fooinit();
	return (*func)();
}