aboutsummaryrefslogtreecommitdiff
path: root/elf/vismain.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/vismain.c')
-rw-r--r--elf/vismain.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/elf/vismain.c b/elf/vismain.c
index f72c3e17a1..a9769202c3 100644
--- a/elf/vismain.c
+++ b/elf/vismain.c
@@ -20,6 +20,14 @@
#include <stdlib.h>
#include <string.h>
+/* Prototype for our test function. */
+extern int do_test (void);
+
+#define TEST_FUNCTION do_test ()
+
+/* This defines the `main' function and some more. */
+#include <test-skeleton.c>
+
/* Prototypes for the functions in the DSOs. */
extern int calllocal1 (void);
extern int (*getlocal1 (void)) (void);
@@ -54,7 +62,7 @@ extern const char *protvarinmod;
extern const char *protvaritcpt;
int
-main (void)
+do_test (void)
{
int res = 0;
int val;