diff options
-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, ['']) |