summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/NoDoAndIfThenElse.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_fail/NoDoAndIfThenElse.hs')
-rw-r--r--testsuite/tests/parser/should_fail/NoDoAndIfThenElse.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/NoDoAndIfThenElse.hs b/testsuite/tests/parser/should_fail/NoDoAndIfThenElse.hs
new file mode 100644
index 0000000000..2439205e3e
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/NoDoAndIfThenElse.hs
@@ -0,0 +1,9 @@
+
+{-# LANGUAGE NoDoAndIfThenElse #-}
+
+module NoDoAndIfThenElse where
+
+foo :: IO ()
+foo = do if True
+ then return ()
+ else return ()