summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/baz.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/baz.c')
-rw-r--r--gdb/testsuite/gdb.base/baz.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/baz.c b/gdb/testsuite/gdb.base/baz.c
new file mode 100644
index 00000000000..a13cd16bbbe
--- /dev/null
+++ b/gdb/testsuite/gdb.base/baz.c
@@ -0,0 +1,9 @@
+static int bazx __attribute__ ((section (".data02"))) = 'b' + 'a' + 'z';
+
+int baz (int x)
+{
+ if (x)
+ return bazx;
+ else
+ return 0;
+}