Skip to content

Commit

Permalink
Test case for indirect dependencies in ghci linker (#10322)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwbarton committed Apr 18, 2015
1 parent 619a324 commit 88b8406
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testsuite/tests/ghci/scripts/T10322.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:set -fobject-code
:load T10322A T10322B T10322C
T10322A.a
T10322B.b
T10322C.c
3 changes: 3 additions & 0 deletions testsuite/tests/ghci/scripts/T10322.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
3
4
7
4 changes: 4 additions & 0 deletions testsuite/tests/ghci/scripts/T10322A.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module T10322A (a) where
{-# NOINLINE a #-}
a :: Int
a = 3
4 changes: 4 additions & 0 deletions testsuite/tests/ghci/scripts/T10322B.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module T10322B (b) where
import T10322A (a)
b :: Int
b = a+1
5 changes: 5 additions & 0 deletions testsuite/tests/ghci/scripts/T10322C.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module T10322C (c) where
import T10322A (a)
import T10322B (b)
c :: Int
c = a+b
2 changes: 2 additions & 0 deletions testsuite/tests/ghci/scripts/all.T
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,5 @@ test('T9878b',
extra_clean(['T9878b.hi','T9878b.o'])],
ghci_script, ['T9878b.script'])
test('T10122', normal, ghci_script, ['T10122.script'])
test('T10322', when(opsys('darwin'), expect_broken(10322)),
ghci_script, ['T10322.script'])

0 comments on commit 88b8406

Please sign in to comment.