diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-09-26 12:02:27 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-09-26 12:02:28 -0400 |
commit | 0ffa396d5421bc127759a62c2612920005423b15 (patch) | |
tree | cc6bb09d1be66ce60f215d2406bef1e7c9d555b2 | |
parent | 57372a7cc958ebfa4ac64fc800e00baacfc3cf5c (diff) | |
download | haskell-0ffa396d5421bc127759a62c2612920005423b15.tar.gz |
testsuite: Add test for #14272
Reviewers: austin
Subscribers: rwbarton, thomie
GHC Trac Issues: #14272
Differential Revision: https://phabricator.haskell.org/D4027
-rw-r--r-- | testsuite/tests/simplCore/should_compile/T14272.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/simplCore/should_compile/all.T | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T14272.hs b/testsuite/tests/simplCore/should_compile/T14272.hs new file mode 100644 index 0000000000..d520c068f5 --- /dev/null +++ b/testsuite/tests/simplCore/should_compile/T14272.hs @@ -0,0 +1,7 @@ +import Data.Bits (bit) + +main :: IO () +main = putStrLn (show (f undefined)) + +f :: [Int] -> Int +f = sum . zipWith ((+) . bit) [0..] . map undefined . scanl undefined undefined diff --git a/testsuite/tests/simplCore/should_compile/all.T b/testsuite/tests/simplCore/should_compile/all.T index 72b872abc2..7f21331cb1 100644 --- a/testsuite/tests/simplCore/should_compile/all.T +++ b/testsuite/tests/simplCore/should_compile/all.T @@ -279,3 +279,5 @@ test('T14140', normal, run_command, ['$MAKE -s --no-print-directory T14140']) + +test('T14272', normal, compile, ['']) |