summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser/align_invalid.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AsmParser/align_invalid.s')
-rw-r--r--test/MC/AsmParser/align_invalid.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/AsmParser/align_invalid.s b/test/MC/AsmParser/align_invalid.s
new file mode 100644
index 000000000000..0d06d9423ced
--- /dev/null
+++ b/test/MC/AsmParser/align_invalid.s
@@ -0,0 +1,10 @@
+# RUN: llvm-mc -triple i386-linux-gnu < %s 2>&1 | FileCheck %s -check-prefix=ELF
+# RUN: llvm-mc -triple i386-apple-darwin < %s 2>&1 | FileCheck %s -check-prefix=DARWIN
+
+.align 3
+# ELF: error: alignment must be a power of 2
+# DARWIN-NOT: error
+
+.align 32
+# ELF-NOT: error
+# DARWIN: error: invalid alignment value