From 34cc4ecc82991f61e55c2625d32115d865575310 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 23 Jan 2004 16:29:25 +0000 Subject: * gas/arm/arm.exp: Add "undefined" test. * gas/arm/undefined.s, gas/arm/undefined.l: New files. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/arm/arm.exp | 2 ++ gas/testsuite/gas/arm/undefined.l | 2 ++ gas/testsuite/gas/arm/undefined.s | 1 + 4 files changed, 10 insertions(+) create mode 100644 gas/testsuite/gas/arm/undefined.l create mode 100644 gas/testsuite/gas/arm/undefined.s (limited to 'gas') 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 -- cgit v1.2.3