summaryrefslogtreecommitdiff
path: root/testsuite/tests/programs/north_array/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/programs/north_array/Main.hs')
-rw-r--r--testsuite/tests/programs/north_array/Main.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/programs/north_array/Main.hs b/testsuite/tests/programs/north_array/Main.hs
new file mode 100644
index 0000000000..b6ceb706d6
--- /dev/null
+++ b/testsuite/tests/programs/north_array/Main.hs
@@ -0,0 +1,10 @@
+import Data.Array -- 1.3
+
+val1, val2 :: Array (Int,Int) Int
+val1 = array ((1,2), (2,1)) []
+val2 = array ((2,1), (1,2)) []
+
+val3 :: Array Integer Double
+val3 = array (4, -3) []
+
+main = print ((val1 == val1) && (val2 == val2) && (val3 == val3))