diff options
author | David Taylor <taylor@redhat.com> | 1999-01-08 23:28:15 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 1999-01-08 23:28:15 +0000 |
commit | ba49f2040693f59e8720ec2ed2db335b4c4e4152 (patch) | |
tree | 065c201913b8780526fa5269ea5e54f12dade3f4 /gdb/testsuite/gdb.base/so-impl-ld.c | |
parent | 4d8f8e121a17c1fd7f114dde29490667678ccce7 (diff) | |
download | gdb-ba49f2040693f59e8720ec2ed2db335b4c4e4152.zip gdb-ba49f2040693f59e8720ec2ed2db335b4c4e4152.tar.gz gdb-ba49f2040693f59e8720ec2ed2db335b4c4e4152.tar.bz2 |
new files; part of HP merge.
Diffstat (limited to 'gdb/testsuite/gdb.base/so-impl-ld.c')
-rw-r--r-- | gdb/testsuite/gdb.base/so-impl-ld.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdio.h> + +extern int solib_main (int); + +main () +{ + int result; + + /* Call a shlib function. */ + result = solib_main (100); + + /* Call it again. */ + result = solib_main (result); +} |