diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-02-25 17:00:30 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-02-25 17:00:30 +0000 |
commit | 093a6ec67f9a17e6ef0e1b8ae828cbe5936f97fd (patch) | |
tree | 5757afbf756db605cd4b12cea07d11c64158fe2d /gas | |
parent | 6ee6cf6ac1748c5f31a539db85f537b9b25b9ef2 (diff) | |
download | gdb-093a6ec67f9a17e6ef0e1b8ae828cbe5936f97fd.zip gdb-093a6ec67f9a17e6ef0e1b8ae828cbe5936f97fd.tar.gz gdb-093a6ec67f9a17e6ef0e1b8ae828cbe5936f97fd.tar.bz2 |
Add a testcase for PR gas/12519.
2011-02-25 H.J. Lu <hongjiu.lu@intel.com>
PR gas/12519
* gas/elf/bad-size.d: New.
* gas/elf/bad-size.err: Likewise.
* gas/elf/bad-size.s: Likewise.
* gas/elf/elf.exp: Run bad-size.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/bad-size.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/bad-size.err | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/bad-size.s | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 1 |
5 files changed, 20 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 50c23da..4bb775d6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2011-02-25 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/12519 + * gas/elf/bad-size.d: New. + * gas/elf/bad-size.err: Likewise. + * gas/elf/bad-size.s: Likewise. + + * gas/elf/elf.exp: Run bad-size. + 2011-02-13 Mike Frysinger <vapier@gentoo.org> * gas/bfin/arithmetic.d, gas/bfin/parallel.d: Change A0 to A1. diff --git a/gas/testsuite/gas/elf/bad-size.d b/gas/testsuite/gas/elf/bad-size.d new file mode 100644 index 0000000..a313293 --- /dev/null +++ b/gas/testsuite/gas/elf/bad-size.d @@ -0,0 +1,2 @@ +#name: Check bad size directive +#error-output: bad-size.err diff --git a/gas/testsuite/gas/elf/bad-size.err b/gas/testsuite/gas/elf/bad-size.err new file mode 100644 index 0000000..5e01ef2 --- /dev/null +++ b/gas/testsuite/gas/elf/bad-size.err @@ -0,0 +1,2 @@ +.*bad-size\.s: Assembler messages: +.*bad-size\.s:6: Error: .* diff --git a/gas/testsuite/gas/elf/bad-size.s b/gas/testsuite/gas/elf/bad-size.s new file mode 100644 index 0000000..c982779 --- /dev/null +++ b/gas/testsuite/gas/elf/bad-size.s @@ -0,0 +1,6 @@ + .text +_test_nop: + .byte 0 + .section .text.entry.continue, "xa" + .byte 0 + .size _test_nop, .-_test_nop diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index f21d838..8bfeb95 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -182,4 +182,5 @@ if { ([istarget "*-*-*elf*"] run_dump_test "dwarf2-3" run_dump_test "dwarf2-4" run_dump_test "bad-section-flag" + run_dump_test "bad-size" } |