summaryrefslogtreecommitdiff
path: root/ghc/compiler/tests/validation-misc/testgrhss.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/compiler/tests/validation-misc/testgrhss.hs')
-rw-r--r--ghc/compiler/tests/validation-misc/testgrhss.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/ghc/compiler/tests/validation-misc/testgrhss.hs b/ghc/compiler/tests/validation-misc/testgrhss.hs
new file mode 100644
index 0000000000..73f1901eac
--- /dev/null
+++ b/ghc/compiler/tests/validation-misc/testgrhss.hs
@@ -0,0 +1,16 @@
+-- grhss
+-----
+
+f x | True = x+1 -- 1
+ | False = True
+
+-----
+
+x | True = x+1 -- 2
+ | False = x
+
+-----
+
+
+
+