aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/shreloc1.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/shreloc1.c
parente7a3abfc27c8859e887a2a411f2d31d6f88c9804 (diff)
downloadgdb-53df362e2a88ef60e58471bb08f7c288cc6d4729.zip
gdb-53df362e2a88ef60e58471bb08f7c288cc6d4729.tar.gz
gdb-53df362e2a88ef60e58471bb08f7c288cc6d4729.tar.bz2
Shared-object relocation tests
Diffstat (limited to 'gdb/testsuite/gdb.base/shreloc1.c')
-rw-r--r--gdb/testsuite/gdb.base/shreloc1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/shreloc1.c b/gdb/testsuite/gdb.base/shreloc1.c
new file mode 100644
index 0000000..b1bffde
--- /dev/null
+++ b/gdb/testsuite/gdb.base/shreloc1.c
@@ -0,0 +1,10 @@
+#if defined(_WIN32) || defined(__CYGWIN__)
+# define ATTRIBUTES __attribute((__dllexport__))
+#else
+# define ATTRIBUTES
+#endif
+
+static int static_var_1;
+
+ATTRIBUTES void fn_1 (int unused) { }
+ATTRIBUTES int extern_var_1 = 0;