public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [RFA:] Trivial test for .gnu.warning.SYMBOL
@ 2005-02-06 14:33 Hans-Peter Nilsson
  2005-02-06 15:07 ` Ian Lance Taylor
  2005-02-13 17:18 ` Eric Botcazou
  0 siblings, 2 replies; 8+ messages in thread
From: Hans-Peter Nilsson @ 2005-02-06 14:33 UTC (permalink / raw)
  To: binutils

I noticed the lack of even trivial test-cases for ".gnu.warning".
Here's one for .gnu.warning.SYMBOL.
Ok to commit?

ld/testsuite:
	* ld-elf/start.s, ld-elf/symbolref.s, ld-elf/symbol1w.s,
	ld-elf/warn1.d: New test.

--- /dev/null	Tue Oct 29 15:57:07 2002
+++ start.s	Sat Feb  5 03:12:33 2005
@@ -0,0 +1,4 @@
+	.text
+	.global _start
+_start:
+	.long 0
--- /dev/null	Tue Oct 29 15:57:07 2002
+++ symbol1ref.s	Sat Feb  5 03:12:49 2005
@@ -0,0 +1,3 @@
+	.text
+	.long symbol1
+
--- /dev/null	Tue Oct 29 15:57:07 2002
+++ symbol1w.s	Sat Feb  5 03:32:12 2005
@@ -0,0 +1,6 @@
+	.section .gnu.warning.symbol1
+	.asciz "witty one-liner"
+	.text
+	.global symbol1
+symbol1:
+	.long 0
--- /dev/null	Tue Oct 29 15:57:07 2002
+++ warn1.d	Sat Feb  5 05:06:00 2005
@@ -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-9]+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL DEFAULT[ 	]+[1-9] symbol1
+#pass

brgds, H-P

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-02-13 20:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-06 14:33 [RFA:] Trivial test for .gnu.warning.SYMBOL Hans-Peter Nilsson
2005-02-06 15:07 ` Ian Lance Taylor
2005-02-13 17:18 ` Eric Botcazou
2005-02-13 19:22   ` Hans-Peter Nilsson
2005-02-13 20:39     ` Eric Botcazou
2005-02-14  0:17       ` Hans-Peter Nilsson
2005-02-14  9:18         ` Eric Botcazou
2005-02-14 10:38           ` Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).