summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-11 17:47:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-11 17:47:52 +0000
commitb27a41b44092c0a6e439203586cc944187de3388 (patch)
tree1061474cc93a41108e8b53f6b1bb38058c193cbf /test/MC
parent12ddd409535b52a7fa5157ded9a4cedd161fedb6 (diff)
downloadllvm-b27a41b44092c0a6e439203586cc944187de3388.tar.gz
llvm-b27a41b44092c0a6e439203586cc944187de3388.tar.bz2
llvm-b27a41b44092c0a6e439203586cc944187de3388.tar.xz
llvm-mc: Fix a crash on invalid due to a typo in relocatable expression
evaluation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/AsmParser/exprs-invalid.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/AsmParser/exprs-invalid.s b/test/MC/AsmParser/exprs-invalid.s
new file mode 100644
index 0000000000..4accc39087
--- /dev/null
+++ b/test/MC/AsmParser/exprs-invalid.s
@@ -0,0 +1,8 @@
+// RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t
+// RUN: FileCheck -input-file %t %s
+
+ .text
+a:
+ .data
+// CHECK: expected relocatable expression
+ .long -(0 + a)