summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/shreloc2.c
diff options
context:
space:
mode:
authorRaoul Gough <RaoulGough@yahoo.co.uk>2003-06-09 21:23:53 +0000
committerRaoul Gough <RaoulGough@yahoo.co.uk>2003-06-09 21:23:53 +0000
commit53df362e2a88ef60e58471bb08f7c288cc6d4729 (patch)
tree8a1bdbb2b9c99e4e3d27e2b2f48d8864b8936692 /gdb/testsuite/gdb.base/shreloc2.c
parente7a3abfc27c8859e887a2a411f2d31d6f88c9804 (diff)
downloadbinutils-gdb-53df362e2a88ef60e58471bb08f7c288cc6d4729.tar.gz
Shared-object relocation tests
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;