diff options
author | Ian Lynagh <igloo@earth.li> | 2006-10-20 13:12:24 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2006-10-20 13:12:24 +0000 |
commit | 5a54c38e846dd4774b0a0cf285d12b353bfcb864 (patch) | |
tree | 93d216945e9254d9ab0b0fa1e5b166410cd7afc7 /testsuite/tests/ghc-regress/module/mod174.hs | |
parent | 81ea2c04dd97f12297d01aa4e2dc338b9346f38a (diff) | |
download | haskell-5a54c38e846dd4774b0a0cf285d12b353bfcb864.tar.gz |
Add test mod174 for trac #414 (GHC does not enforce that Main exports main)
Diffstat (limited to 'testsuite/tests/ghc-regress/module/mod174.hs')
-rw-r--r-- | testsuite/tests/ghc-regress/module/mod174.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-regress/module/mod174.hs b/testsuite/tests/ghc-regress/module/mod174.hs new file mode 100644 index 0000000000..8e8149db7a --- /dev/null +++ b/testsuite/tests/ghc-regress/module/mod174.hs @@ -0,0 +1,9 @@ + +-- 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" + |