Commit 5a54c38e authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add test mod174 for trac #414 (GHC does not enforce that Main exports main)

parent 81ea2c04
......@@ -234,6 +234,7 @@ clean(['Mod172_B.hi', 'Mod172_B.o', 'Mod172_C.hi', 'Mod172_C.o'])
test('mod173', normal, multimod_compile, ['mod173', '-v0'])
clean(['Mod173_Aux.hi', 'Mod173_Aux.o'])
test('mod174', normal, compile_fail, [''])
# After here we have GHC-only tests (the ones above are copied from Hugs)
-- Test for trac #414
-- If main is not exported from Main then we should emit an error
-- instead of running it anyway
module Main () where
main = putStrLn "Hello, World"
The main function `main' is not defined in module `Main'
When checking the type of the main function `main'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment