summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-01-30 21:13:05 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-01-30 21:13:05 +0000
commit4e54e6fe755c54c444687f9d0d2e657982aa8e1c (patch)
tree1fde9914c79b1d342c6abd905c4daf43e2d50a3b /test
parent6420c1109328813ddd6eec03c510ac7ae46249fb (diff)
downloadllvm-4e54e6fe755c54c444687f9d0d2e657982aa8e1c.tar.gz
llvm-4e54e6fe755c54c444687f9d0d2e657982aa8e1c.tar.bz2
llvm-4e54e6fe755c54c444687f9d0d2e657982aa8e1c.tar.xz
Fix PR18381 - print a minimal diagnostic rather than assert on unresolved .secidx target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/COFF/secidx-diagnostic.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/COFF/secidx-diagnostic.s b/test/MC/COFF/secidx-diagnostic.s
new file mode 100644
index 0000000000..3e496c3fd4
--- /dev/null
+++ b/test/MC/COFF/secidx-diagnostic.s
@@ -0,0 +1,8 @@
+// RUN: not llvm-mc -filetype=obj -triple i686-pc-win32 %s 2>%t
+// RUN: FileCheck %s < %t
+
+// CHECK: symbol 'bar' can not be undefined
+
+.data
+foo:
+ .secidx bar