aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/warn1.d
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-02-07 02:46:15 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-02-07 02:46:15 +0000
commitb80f2c6aabb92ecbbf36c353d2b4f5d022cb3a9a (patch)
tree6be32c43af3cfe3b09503f60eb138fd24266a775 /ld/testsuite/ld-elf/warn1.d
parent765f2ef6956841baed46e6203a7b9be1b248285c (diff)
downloadgdb-b80f2c6aabb92ecbbf36c353d2b4f5d022cb3a9a.zip
gdb-b80f2c6aabb92ecbbf36c353d2b4f5d022cb3a9a.tar.gz
gdb-b80f2c6aabb92ecbbf36c353d2b4f5d022cb3a9a.tar.bz2
* ld-elf/start.s, ld-elf/symbolref.s, ld-elf/symbol1w.s,
ld-elf/warn1.d: New test.
Diffstat (limited to 'ld/testsuite/ld-elf/warn1.d')
-rw-r--r--ld/testsuite/ld-elf/warn1.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/warn1.d b/ld/testsuite/ld-elf/warn1.d
new file mode 100644
index 0000000..97da85b
--- /dev/null
+++ b/ld/testsuite/ld-elf/warn1.d
@@ -0,0 +1,13 @@
+#source: start.s
+#source: symbol1ref.s
+#source: symbol1w.s
+#ld:
+#warning: ^[^\\n]*\): warning: witty one-liner$
+#readelf: -s
+
+# Check that warnings are generated for the .gnu.warning.SYMBOL
+# construct and that the symbol still appears as expected.
+
+#...
+[ ]+[0-9]+:[ ]+[0-9a-f]+[ ]+[48][ ]+FUNC[ ]+GLOBAL DEFAULT[ ]+[1-9] symbol1
+#pass