diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-09 22:42:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-09 22:42:59 +0000 |
commit | 1ab6f2fa7a38a12d8f20157d71e5280a253f2578 (patch) | |
tree | bfae1d28375aef43b1786155c7faa927abe6b58d /test | |
parent | 93bd4d1e6b81b71ce56888e760ce0c9abe44023f (diff) | |
download | llvm-1ab6f2fa7a38a12d8f20157d71e5280a253f2578.tar.gz llvm-1ab6f2fa7a38a12d8f20157d71e5280a253f2578.tar.bz2 llvm-1ab6f2fa7a38a12d8f20157d71e5280a253f2578.tar.xz |
llvm-mc: Don't crash when using -n and we see a directive before the initial section.
- This is annoying, because we have to scatter this check everywhere that could emit real data, but I see no better solution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/dash-n.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/AsmParser/dash-n.s b/test/MC/AsmParser/dash-n.s new file mode 100644 index 0000000000..b6243a4a01 --- /dev/null +++ b/test/MC/AsmParser/dash-n.s @@ -0,0 +1,7 @@ +// RUN: not llvm-mc -n -triple i386-unknown-unknown %s 2> %t +// RUN: FileCheck < %t %s + +.globl a +// CHECK: error: expected section directive before assembly directive +.long 0 + |