Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

5 changed files:

Changes:

  • testsuite/tests/driver/T10531/A.hs
    1
    +module A where
    
    2
    +
    
    3
    +main :: IO ()
    
    4
    +main = putStrLn "A"

  • testsuite/tests/driver/T10531/B.hs
    1
    +module B where
    
    2
    +
    
    3
    +import A ()
    
    4
    +
    
    5
    +main :: IO ()
    
    6
    +main = putStrLn "B"

  • testsuite/tests/driver/T10531/C.hs
    1
    +import B ()
    
    2
    +
    
    3
    +main :: IO ()
    
    4
    +main = putStrLn "hi"

  • testsuite/tests/driver/T10531/Makefile
    1
    +TOP=../../..
    
    2
    +include $(TOP)/mk/boilerplate.mk
    
    3
    +include $(TOP)/mk/test.mk
    
    4
    +
    
    5
    +# Test for #10531, a recompilation bug with '-main-is'.
    
    6
    +
    
    7
    +T10531:
    
    8
    +	'$(TEST_HC)' $(TEST_HC_OPTS) -Wall A.hs -main-is A.main -o a
    
    9
    +	'$(TEST_HC)' $(TEST_HC_OPTS) -Wall B.hs -main-is B.main -o b
    
    10
    +	'$(TEST_HC)' $(TEST_HC_OPTS) -Wall C.hs -o c
    
    11
    +	rm -f A.o
    
    12
    +	'$(TEST_HC)' $(TEST_HC_OPTS) -Wall A.hs -main-is A.main -o a
    
    13
    +	'$(TEST_HC)' $(TEST_HC_OPTS) -Wall B.hs -main-is B.main -o b
    
    14
    +	./b$(exeext)

  • testsuite/tests/driver/T10531/all.T
    1
    +test('T10531', [extra_files(['A.hs', 'B.hs', 'C.hs']), ignore_stdout], makefile_test, [])