[lld] r194723 - Test for r194671.
Rui Ueyama
ruiu at google.com
Thu Nov 14 11:18:54 PST 2013
Author: ruiu
Date: Thu Nov 14 13:18:54 2013
New Revision: 194723
URL: http://llvm.org/viewvc/llvm-project?rev=194723&view=rev
Log:
Test for r194671.
Added:
lld/trunk/test/core/error-duplicate-absolutes.objtxt
Added: lld/trunk/test/core/error-duplicate-absolutes.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/core/error-duplicate-absolutes.objtxt?rev=194723&view=auto
==============================================================================
--- lld/trunk/test/core/error-duplicate-absolutes.objtxt (added)
+++ lld/trunk/test/core/error-duplicate-absolutes.objtxt Thu Nov 14 13:18:54 2013
@@ -0,0 +1,24 @@
+# RUN: not lld -core %s 2> %t.err
+# RUN: FileCheck %s < %t.err
+
+#
+# Test that duplicate absolute atoms produces a readable error.
+#
+
+---
+absolute-atoms:
+ - name: absatom
+ value: 0
+ scope: global
+undefined-atoms:
+ - name: undefatom
+---
+absolute-atoms:
+ - name: absatom
+ value: 0
+ scope: global
+...
+
+
+# CHECK: SymbolTable: error while merging absatom
+# CHECK: LLVM ERROR: duplicate symbol error
More information about the llvm-commits
mailing list