aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/asm/opterr3.ms
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cris/asm/opterr3.ms')
-rw-r--r--sim/testsuite/cris/asm/opterr3.ms10
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/testsuite/cris/asm/opterr3.ms b/sim/testsuite/cris/asm/opterr3.ms
new file mode 100644
index 0000000..8d602be
--- /dev/null
+++ b/sim/testsuite/cris/asm/opterr3.ms
@@ -0,0 +1,10 @@
+# mach: crisv3 crisv8 crisv10 crisv32
+# ld: -N --oformat binary --section-start=.text=0x10000000
+# sim: --cris-naked --memory-mapfile
+# xerror:
+# output: Usage: run \[options\] program \[program args\]\n*\n
+# progopts: --memory-region 0x10000000,0x1000
+ .include "bare3.ms"
+
+; Check that we get an error for wrong usage, not a SEGV for lack of
+; bfd when missing the program argument (can't use *only* mapped files).