summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-e
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-e')
-rw-r--r--testsuite/tests/ghc-e/should_fail/Makefile6
-rw-r--r--testsuite/tests/ghc-e/should_fail/all.T3
2 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-e/should_fail/Makefile b/testsuite/tests/ghc-e/should_fail/Makefile
new file mode 100644
index 0000000000..5b0d753817
--- /dev/null
+++ b/testsuite/tests/ghc-e/should_fail/Makefile
@@ -0,0 +1,6 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+T7962:
+ '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e "return ("
diff --git a/testsuite/tests/ghc-e/should_fail/all.T b/testsuite/tests/ghc-e/should_fail/all.T
new file mode 100644
index 0000000000..4c5ac5cebd
--- /dev/null
+++ b/testsuite/tests/ghc-e/should_fail/all.T
@@ -0,0 +1,3 @@
+setTestOpts(when(compiler_profiled(), skip))
+
+test('T7962', [exit_code(2), req_interp, ignore_output], run_command, ['$MAKE --no-print-directory -s T7962'])