summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/solib1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/solib1.c')
-rw-r--r--gdb/testsuite/gdb.base/solib1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/solib1.c b/gdb/testsuite/gdb.base/solib1.c
new file mode 100644
index 00000000000..eecf02438b4
--- /dev/null
+++ b/gdb/testsuite/gdb.base/solib1.c
@@ -0,0 +1,9 @@
+/* This program is intended to be built as an HP-UX SOM shared
+ library, for use by the solib.exp testcase. It simply returns
+ the square of its integer argument.
+ */
+int solib_main (arg)
+ int arg;
+{
+ return arg*arg;
+}