From 4e54e6fe755c54c444687f9d0d2e657982aa8e1c Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Thu, 30 Jan 2014 21:13:05 +0000 Subject: 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 --- test/MC/COFF/secidx-diagnostic.s | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/MC/COFF/secidx-diagnostic.s (limited to 'test') 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 -- cgit v1.2.3