summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/arm/arm.exp2
-rw-r--r--gas/testsuite/gas/arm/undefined.l2
-rw-r--r--gas/testsuite/gas/arm/undefined.s1
4 files changed, 10 insertions, 0 deletions
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 <drow@mvista.com>
+
+ * gas/arm/arm.exp: Add "undefined" test.
+ * gas/arm/undefined.s, gas/arm/undefined.l: New files.
+
2004-01-23 Richard Sandiford <rsandifo@redhat.com>
* 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