From 5863ce4eb6fe2d7143c483e78b478e25881c0160 Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Fri, 4 Oct 2013 18:51:25 +0100 Subject: Test Trac #8383 --- testsuite/tests/ghci/scripts/T8383.hs | 8 ++++++++ testsuite/tests/ghci/scripts/T8383.script | 3 +++ testsuite/tests/ghci/scripts/T8383.stdout | 2 ++ testsuite/tests/ghci/scripts/all.T | 2 ++ 4 files changed, 15 insertions(+) create mode 100644 testsuite/tests/ghci/scripts/T8383.hs create mode 100644 testsuite/tests/ghci/scripts/T8383.script create mode 100644 testsuite/tests/ghci/scripts/T8383.stdout diff --git a/testsuite/tests/ghci/scripts/T8383.hs b/testsuite/tests/ghci/scripts/T8383.hs new file mode 100644 index 0000000000..44ef0feac8 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T8383.hs @@ -0,0 +1,8 @@ +{-# LANGUAGE MagicHash #-} +module T8383 where +import GHC.Exts +f :: Int# -> Int# +f x = x +foo = print $ (tagToEnum# (f 0#) :: Bool) +bar = print $ (tagToEnum# (f 1#) :: Bool) + diff --git a/testsuite/tests/ghci/scripts/T8383.script b/testsuite/tests/ghci/scripts/T8383.script new file mode 100644 index 0000000000..5d43f29ac6 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T8383.script @@ -0,0 +1,3 @@ +:l T8383 +foo +bar diff --git a/testsuite/tests/ghci/scripts/T8383.stdout b/testsuite/tests/ghci/scripts/T8383.stdout new file mode 100644 index 0000000000..91d6f80f27 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T8383.stdout @@ -0,0 +1,2 @@ +False +True diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T index d5b9e2cf05..9a278ef00f 100755 --- a/testsuite/tests/ghci/scripts/all.T +++ b/testsuite/tests/ghci/scripts/all.T @@ -156,3 +156,5 @@ test('T8113', normal, ghci_script, ['T8113.script']) test('T8172', normal, ghci_script, ['T8172.script']) test('T8215', normal, ghci_script, ['T8215.script']) test('T8357', normal, ghci_script, ['T8357.script']) +test('T8383', normal, ghci_script, ['T8383.script']) + -- cgit v1.2.1