summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2020-09-29 14:25:51 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-10-01 18:37:23 -0400
commitba5965eb10967d21b992aac925fb772db2ddde12 (patch)
tree3d2b10cd802c6ce167857e161aae9561a5bcc06e
parente3655f810b4eba1fb7d81a3227a08dae8b85dfc4 (diff)
downloadhaskell-ba5965eb10967d21b992aac925fb772db2ddde12.tar.gz
Add regression test for #18755.
Close #18755
-rw-r--r--testsuite/tests/ghci/scripts/T18755.script2
-rw-r--r--testsuite/tests/ghci/scripts/T18755.stdout3
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
3 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T18755.script b/testsuite/tests/ghci/scripts/T18755.script
new file mode 100644
index 0000000000..5ee4e9bdf4
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T18755.script
@@ -0,0 +1,2 @@
+:set -fprint-explicit-runtime-reps
+:t ($)
diff --git a/testsuite/tests/ghci/scripts/T18755.stdout b/testsuite/tests/ghci/scripts/T18755.stdout
new file mode 100644
index 0000000000..c69cdfaf37
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T18755.stdout
@@ -0,0 +1,3 @@
+($)
+ :: forall (r :: GHC.Types.RuntimeRep) a (b :: TYPE r).
+ (a -> b) -> a -> b
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index df859c6c3a..e3a84eb764 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -320,3 +320,4 @@ test('T17549', normal, ghci_script, ['T17549.script'])
test('T17669', [extra_run_opts('-fexternal-interpreter -fobject-code'), expect_broken(17669)], ghci_script, ['T17669.script'])
test('T18501', normal, ghci_script, ['T18501.script'])
test('T18644', normal, ghci_script, ['T18644.script'])
+test('T18755', normal, ghci_script, ['T18755.script'])