summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/shreloc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/shreloc2.c')
-rw-r--r--gdb/testsuite/gdb.base/shreloc2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/shreloc2.c b/gdb/testsuite/gdb.base/shreloc2.c
new file mode 100644
index 00000000000..1459093eeeb
--- /dev/null
+++ b/gdb/testsuite/gdb.base/shreloc2.c
@@ -0,0 +1,10 @@
+#if defined(_WIN32) || defined(__CYGWIN__)
+# define ATTRIBUTES __attribute((__dllexport__))
+#else
+# define ATTRIBUTES
+#endif
+
+static int static_var_2;
+
+ATTRIBUTES void fn_2 (int unused) { }
+ATTRIBUTES int extern_var_2 = 0;