From: Daniel Jacobowitz Date: Fri, 23 Jan 2004 16:29:25 +0000 (+0000) Subject: * gas/arm/arm.exp: Add "undefined" test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34cc4ecc82991f61e55c2625d32115d865575310;p=binutils-gdb.git * gas/arm/arm.exp: Add "undefined" test. * gas/arm/undefined.s, gas/arm/undefined.l: New files. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index db61700d9f0..ef4e62b9212 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-23 Daniel Jacobowitz + + * gas/arm/arm.exp: Add "undefined" test. + * gas/arm/undefined.s, gas/arm/undefined.l: New files. + 2004-01-23 Richard Sandiford * gas/mips/macro-warn-[1234].[sdl]: New tests. diff --git a/gas/testsuite/gas/arm/arm.exp b/gas/testsuite/gas/arm/arm.exp index 9816497bd4e..e5ec8be4126 100644 --- a/gas/testsuite/gas/arm/arm.exp +++ b/gas/testsuite/gas/arm/arm.exp @@ -86,6 +86,8 @@ if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then { } gas_test "offset.s" "" $stdoptlist "OFFSET_IMM regression" + + run_errors_test "undefined" "" "Undefined local label error" } # Not all arm targets are bi-endian, so only run this test on ones diff --git a/gas/testsuite/gas/arm/undefined.l b/gas/testsuite/gas/arm/undefined.l new file mode 100644 index 00000000000..89cfa0415f5 --- /dev/null +++ b/gas/testsuite/gas/arm/undefined.l @@ -0,0 +1,2 @@ +[^:]*: Assembler messages: +[^:]*:1: Error: undefined local label `\.Lval' diff --git a/gas/testsuite/gas/arm/undefined.s b/gas/testsuite/gas/arm/undefined.s new file mode 100644 index 00000000000..f7b76d7d2f2 --- /dev/null +++ b/gas/testsuite/gas/arm/undefined.s @@ -0,0 +1 @@ + ldr a1, .Lval