Add testcases for PR gas/14315

PR gas/14315
	* gas/elf/common1.d: New file.
	* gas/elf/common1.l: Likewise.
	* gas/elf/common1.s: Likewise.
	* gas/elf/common2.d: Likewise.
	* gas/elf/common2.l: Likewise.
	* gas/elf/common2.s: Likewise.

	* gas/elf/elf.exp: Run common1 and common2.
This commit is contained in:
H.J. Lu 2012-06-30 12:35:52 +00:00
parent e95a6b1c3c
commit f3aa805470
8 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,15 @@
2012-06-30 H.J. Lu <hongjiu.lu@intel.com>
PR gas/14315
* gas/elf/common1.d: New file.
* gas/elf/common1.l: Likewise.
* gas/elf/common1.s: Likewise.
* gas/elf/common2.d: Likewise.
* gas/elf/common2.l: Likewise.
* gas/elf/common2.s: Likewise.
* gas/elf/elf.exp: Run common1 and common2.
2012-06-29 Alan Modra <amodra@gmail.com>
* gas/lns/lns.exp (lns-common-1): Add crx to alt target list.

View File

@ -0,0 +1,2 @@
#name: weak and common directives
#error-output: common1.l

View File

@ -0,0 +1,2 @@
[^:]*: Assembler messages:
[^:]*: Error: symbol `foobar' can not be both weak and common

View File

@ -0,0 +1,2 @@
.weak foobar
.comm foobar,30

View File

@ -0,0 +1,2 @@
#name: common and weak directives
#error-output: common2.l

View File

@ -0,0 +1,2 @@
[^:]*: Assembler messages:
[^:]*: Error: symbol `foobar' can not be both weak and common

View File

@ -0,0 +1,2 @@
.comm foobar,30
.weak foobar

View File

@ -186,6 +186,9 @@ if { [is_elf_format] } then {
run_dump_test "syms"
run_dump_test "common1"
run_dump_test "common2"
load_lib gas-dg.exp
dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""