[lld] r191475 - [PECOFF] Add a test for the import table.

Rui Ueyama ruiu at google.com
Thu Sep 26 17:56:37 PDT 2013


Author: ruiu
Date: Thu Sep 26 19:56:37 2013
New Revision: 191475

URL: http://llvm.org/viewvc/llvm-project?rev=191475&view=rev
Log:
[PECOFF] Add a test for the import table.

Added:
    lld/trunk/test/pecoff/dynamic.test

Added: lld/trunk/test/pecoff/dynamic.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/dynamic.test?rev=191475&view=auto
==============================================================================
--- lld/trunk/test/pecoff/dynamic.test (added)
+++ lld/trunk/test/pecoff/dynamic.test Thu Sep 26 19:56:37 2013
@@ -0,0 +1,10 @@
+# RUN: yaml2obj %p/Inputs/vars-main.obj.yaml > %t.obj
+#
+# RUN: lld -flavor link /out:%t1 /subsystem:console /entry:main /opt:noref \
+# RUN:    -- %t.obj %p/Inputs/vars.lib && llvm-objdump -p %t1 | FileCheck %s
+
+CHECK:      DLL Name: vars.dll
+CHECK-NEXT: Hint/Ord  Name
+CHECK-NEXT:        0  _name_with_underscore
+CHECK-NEXT:        1  fn
+CHECK-NEXT:        1





More information about the llvm-commits mailing list