summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/all/err-1.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gas/testsuite/gas/all/err-1.s')
-rw-r--r--binutils-2.25/gas/testsuite/gas/all/err-1.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils-2.25/gas/testsuite/gas/all/err-1.s b/binutils-2.25/gas/testsuite/gas/all/err-1.s
new file mode 100644
index 00000000..68fbad54
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/all/err-1.s
@@ -0,0 +1,7 @@
+;# Test .error directive.
+;# { dg-do assemble }
+ .error "an error message" ;# { dg-error "Error: an error message" }
+ .error an error message ;# { dg-error "Error: .error argument must be a string" }
+ .error ;# { dg-error "Error: .error directive invoked in source file" }
+ .error ".error directive invoked in source file" ;# { dg-error "Error: .error directive invoked in source file" }
+ .error "" ;# { dg-error "Error: " }