From ba49f2040693f59e8720ec2ed2db335b4c4e4152 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 8 Jan 1999 23:28:15 +0000 Subject: new files; part of HP merge. --- gdb/testsuite/gdb.base/so-impl-ld.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gdb/testsuite/gdb.base/so-impl-ld.c (limited to 'gdb/testsuite/gdb.base/so-impl-ld.c') diff --git a/gdb/testsuite/gdb.base/so-impl-ld.c b/gdb/testsuite/gdb.base/so-impl-ld.c new file mode 100644 index 0000000..a8fa189 --- /dev/null +++ b/gdb/testsuite/gdb.base/so-impl-ld.c @@ -0,0 +1,18 @@ +/* This program is linked against SOM shared libraries, which the loader + automatically loads along with the program itself). + */ + +#include + +extern int solib_main (int); + +main () +{ + int result; + + /* Call a shlib function. */ + result = solib_main (100); + + /* Call it again. */ + result = solib_main (result); +} -- cgit v1.1