summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T10110B.hs
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2015-05-19 01:21:09 -0500
committerAustin Seipp <austin@well-typed.com>2015-05-19 01:24:57 -0500
commit85bf9e49f5ab4e0681eeda2549dbd4b5faf3ef7f (patch)
treea95bdf71538c87e74d0633b65463550227c10a9f /testsuite/tests/ghci/scripts/T10110B.hs
parenteaaa38ba24d5152623cb202a98f71ed09deef0bb (diff)
downloadhaskell-85bf9e49f5ab4e0681eeda2549dbd4b5faf3ef7f.tar.gz
Add regression test for #10110.
Module C imports a from Module A and b from module B. B does not import anything from A. So if ld is configured to drop DT_NEEDED tags for libraries it does not depend on no DT_NEEDED tag for the temporary shared object containing module A is recorded in the temp SO containing module B. This leads to an undefined symbol when linking the temp SO for module C. Fixes #10110. Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D895 GHC Trac Issues: #10110
Diffstat (limited to 'testsuite/tests/ghci/scripts/T10110B.hs')
-rw-r--r--testsuite/tests/ghci/scripts/T10110B.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T10110B.hs b/testsuite/tests/ghci/scripts/T10110B.hs
new file mode 100644
index 0000000000..65cfc7efed
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T10110B.hs
@@ -0,0 +1,3 @@
+module T10110B (b) where
+b :: Int
+b = 5