summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x1.cc
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-08-16 19:57:19 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-08-16 19:57:19 +0000
commit39e2b1a6657bcf6f1ae2b616b447c9dab88917ef (patch)
tree055de877d081cfed1fd88f6816b79bcb58acfcd8 /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x1.cc
parentd0482ec9625080530383d3eea542b4bce80408a3 (diff)
downloadgdb-39e2b1a6657bcf6f1ae2b616b447c9dab88917ef.tar.gz
Initial revision
Diffstat (limited to 'gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x1.cc')
-rw-r--r--gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x1.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x1.cc b/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x1.cc
new file mode 100644
index 00000000000..84231b08bea
--- /dev/null
+++ b/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x1.cc
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+extern int foo();
+extern int common3;
+extern int data3;
+extern int common11;
+extern int data11;
+
+int main()
+{
+ common11 = 11;
+ printf("In main: %d %d %d\n", data3, common3, foo(), common11, data11);
+
+ return 0;
+}