Skip to content

Commit

Permalink
add a test for #706
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmar committed Apr 8, 2011
1 parent f65f848 commit 4b4c2f0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/ghc-regress/driver/Makefile
Expand Up @@ -472,3 +472,10 @@ withRtsOpts:
T3364:
-"$(TEST_HC)" -H

.PHONY: T706
T706:
cp T706a.hs T706.hs
"$(TEST_HC)" -c T706.hs
cp T706b.hs T706.hs
"$(TEST_HC)" -c T706.hs
echo "test" | "$(TEST_HC)" --interactive -v0 T706
1 change: 1 addition & 0 deletions tests/ghc-regress/driver/T706.stdout
@@ -0,0 +1 @@
"testing"
7 changes: 7 additions & 0 deletions tests/ghc-regress/driver/T706a.hs
@@ -0,0 +1,7 @@
{-# LANGUAGE Haskell2010 #-}
module T706 where

foreign export ccall f :: Int -> Int

f :: Int -> Int
f x = x + 1
3 changes: 3 additions & 0 deletions tests/ghc-regress/driver/T706b.hs
@@ -0,0 +1,3 @@
module T706 where

test = "testing"
2 changes: 2 additions & 0 deletions tests/ghc-regress/driver/all.T
Expand Up @@ -318,3 +318,5 @@ test('T3364', normalise_fun(normalise_errmsg), run_command,
test('T4437', only_ways(['normal']), compile_and_run, ['-package ghc'])

test('werror', normal, compile_fail, [''])

test('T706', normal, run_command, ['$MAKE -s --no-print-directory T706'])

0 comments on commit 4b4c2f0

Please sign in to comment.