mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
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:
parent
e95a6b1c3c
commit
f3aa805470
@ -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.
|
||||
|
2
gas/testsuite/gas/elf/common1.d
Normal file
2
gas/testsuite/gas/elf/common1.d
Normal file
@ -0,0 +1,2 @@
|
||||
#name: weak and common directives
|
||||
#error-output: common1.l
|
2
gas/testsuite/gas/elf/common1.l
Normal file
2
gas/testsuite/gas/elf/common1.l
Normal file
@ -0,0 +1,2 @@
|
||||
[^:]*: Assembler messages:
|
||||
[^:]*: Error: symbol `foobar' can not be both weak and common
|
2
gas/testsuite/gas/elf/common1.s
Normal file
2
gas/testsuite/gas/elf/common1.s
Normal file
@ -0,0 +1,2 @@
|
||||
.weak foobar
|
||||
.comm foobar,30
|
2
gas/testsuite/gas/elf/common2.d
Normal file
2
gas/testsuite/gas/elf/common2.d
Normal file
@ -0,0 +1,2 @@
|
||||
#name: common and weak directives
|
||||
#error-output: common2.l
|
2
gas/testsuite/gas/elf/common2.l
Normal file
2
gas/testsuite/gas/elf/common2.l
Normal file
@ -0,0 +1,2 @@
|
||||
[^:]*: Assembler messages:
|
||||
[^:]*: Error: symbol `foobar' can not be both weak and common
|
2
gas/testsuite/gas/elf/common2.s
Normal file
2
gas/testsuite/gas/elf/common2.s
Normal file
@ -0,0 +1,2 @@
|
||||
.comm foobar,30
|
||||
.weak foobar
|
@ -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]] "" ""
|
||||
|
Loading…
Reference in New Issue
Block a user