diff options
Diffstat (limited to 'testsuite/tests/numeric/should_compile')
-rw-r--r-- | testsuite/tests/numeric/should_compile/T10929.hs | 31 | ||||
-rw-r--r-- | testsuite/tests/numeric/should_compile/T10929.stderr | 6 | ||||
-rw-r--r-- | testsuite/tests/numeric/should_compile/all.T | 1 |
3 files changed, 38 insertions, 0 deletions
diff --git a/testsuite/tests/numeric/should_compile/T10929.hs b/testsuite/tests/numeric/should_compile/T10929.hs new file mode 100644 index 0000000000..47e00719c4 --- /dev/null +++ b/testsuite/tests/numeric/should_compile/T10929.hs @@ -0,0 +1,31 @@ +module T10929 where + +x1 :: [Integer] +x1 = [5 .. 3] + +x2 :: [Integer] +x2 = [3 .. 5] + +x3 :: [Integer] +x3 = [5, 3 .. 1] + +x4 :: [Integer] +x4 = [5, (3+0) .. 1] + +x5 :: [Integer] +x5 = [1, 3 .. 5] + +x6 :: [Integer] +x6 = [1, (3+0) .. 5] + +x7 :: [Integer] +x7 = [5, 7 .. 1] + +x8 :: [Integer] +x8 = [5, (7+0) .. 1] + +x9 :: [Integer] +x9 = [3, 1 .. 5] + +x10 :: [Integer] +x10 = [3, (1+0) .. 5] diff --git a/testsuite/tests/numeric/should_compile/T10929.stderr b/testsuite/tests/numeric/should_compile/T10929.stderr new file mode 100644 index 0000000000..8723c42a9a --- /dev/null +++ b/testsuite/tests/numeric/should_compile/T10929.stderr @@ -0,0 +1,6 @@ + +T10929.hs:4:6: warning: Enumeration is empty + +T10929.hs:22:6: warning: Enumeration is empty + +T10929.hs:28:6: warning: Enumeration is empty diff --git a/testsuite/tests/numeric/should_compile/all.T b/testsuite/tests/numeric/should_compile/all.T index 246642f263..ea42aad5d8 100644 --- a/testsuite/tests/numeric/should_compile/all.T +++ b/testsuite/tests/numeric/should_compile/all.T @@ -2,3 +2,4 @@ test('T7116', normal, run_command, ['$MAKE -s --no-print-directory T7116']) test('T7895', normal, compile, ['']) test('T7881', normal, compile, ['']) test('T8542', normal, compile, ['']) +test('T10929', normal, compile, ['']) |