summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRoland Senn <rsx@bluewin.ch>2018-12-24 14:14:25 +0100
committerBen Gamari <ben@smart-cactus.org>2019-01-16 14:10:49 -0500
commit9fb744bdc54c75cf5b91aa783b18233ba8da04a6 (patch)
tree935207b4a3b146bdb6817c34c666936dff86b512 /testsuite
parentce2f77d5656e847e8411805906f736a4a0a1242e (diff)
downloadhaskell-9fb744bdc54c75cf5b91aa783b18233ba8da04a6.tar.gz
GHCi ignores cmd line flags XMonomorphismRestr.. XNoExtendedDef..#10857
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/ghci/should_run/T10857a.script1
-rw-r--r--testsuite/tests/ghci/should_run/T10857a.stdout6
-rw-r--r--testsuite/tests/ghci/should_run/T10857b.script1
-rw-r--r--testsuite/tests/ghci/should_run/T10857b.stdout4
-rw-r--r--testsuite/tests/ghci/should_run/all.T4
5 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/should_run/T10857a.script b/testsuite/tests/ghci/should_run/T10857a.script
new file mode 100644
index 0000000000..d0b497782f
--- /dev/null
+++ b/testsuite/tests/ghci/should_run/T10857a.script
@@ -0,0 +1 @@
+:showi lang
diff --git a/testsuite/tests/ghci/should_run/T10857a.stdout b/testsuite/tests/ghci/should_run/T10857a.stdout
new file mode 100644
index 0000000000..a37151f062
--- /dev/null
+++ b/testsuite/tests/ghci/should_run/T10857a.stdout
@@ -0,0 +1,6 @@
+base language is: Haskell2010
+with the following modifiers:
+ -XNoDatatypeContexts
+ -XExtendedDefaultRules
+ -XNoMonomorphismRestriction
+ -XNondecreasingIndentation
diff --git a/testsuite/tests/ghci/should_run/T10857b.script b/testsuite/tests/ghci/should_run/T10857b.script
new file mode 100644
index 0000000000..d0b497782f
--- /dev/null
+++ b/testsuite/tests/ghci/should_run/T10857b.script
@@ -0,0 +1 @@
+:showi lang
diff --git a/testsuite/tests/ghci/should_run/T10857b.stdout b/testsuite/tests/ghci/should_run/T10857b.stdout
new file mode 100644
index 0000000000..2619fae00d
--- /dev/null
+++ b/testsuite/tests/ghci/should_run/T10857b.stdout
@@ -0,0 +1,4 @@
+base language is: Haskell2010
+with the following modifiers:
+ -XNoDatatypeContexts
+ -XNondecreasingIndentation
diff --git a/testsuite/tests/ghci/should_run/all.T b/testsuite/tests/ghci/should_run/all.T
index 004794b5e5..a9eded46d9 100644
--- a/testsuite/tests/ghci/should_run/all.T
+++ b/testsuite/tests/ghci/should_run/all.T
@@ -23,6 +23,10 @@ test('T9914', just_ghci, ghci_script, ['T9914.script'])
test('T9915', just_ghci, ghci_script, ['T9915.script'])
test('T10145', just_ghci, ghci_script, ['T10145.script'])
test('T7253', just_ghci, ghci_script, ['T7253.script'])
+test('T10857a', just_ghci, ghci_script, ['T10857a.script'])
+test('T10857b',
+ [extra_hc_opts("-XMonomorphismRestriction -XNoExtendedDefaultRules")],
+ ghci_script, ['T10857b.script'])
test('T11328', just_ghci, ghci_script, ['T11328.script'])
test('T11825', just_ghci, ghci_script, ['T11825.script'])
test('T12128', just_ghci, ghci_script, ['T12128.script'])