aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/relocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/relocate.c')
-rw-r--r--gdb/testsuite/gdb.base/relocate.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/relocate.c b/gdb/testsuite/gdb.base/relocate.c
new file mode 100644
index 0000000..d202392
--- /dev/null
+++ b/gdb/testsuite/gdb.base/relocate.c
@@ -0,0 +1,17 @@
+static int static_foo = 1;
+static int static_bar = 2;
+
+int global_foo = 3;
+int global_bar = 4;
+
+int
+function_foo ()
+{
+ return 5;
+}
+
+int
+function_bar ()
+{
+ return 6;
+}