summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-01-26 12:55:25 -0500
committerBen Gamari <ben@smart-cactus.org>2018-01-26 13:51:13 -0500
commit983e491927a461457cc587197ce1644746db894b (patch)
tree68d6a33ab9df9b3b99e9bab1247a503f995b3eb1 /testsuite
parent0e022e56b130ab9d277965b794e70d8d3fb29533 (diff)
downloadhaskell-983e491927a461457cc587197ce1644746db894b.tar.gz
testsuite: Add testcase for #12158
Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4334
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/ghci/scripts/T12158.script2
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
2 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T12158.script b/testsuite/tests/ghci/scripts/T12158.script
new file mode 100644
index 0000000000..d18f360513
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T12158.script
@@ -0,0 +1,2 @@
+data Stock = Stock {name :: String, ric :: String, price :: Float} deriving (Show)
+price Stock{name=name,ric=ric,price=price} = price
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index e45359178f..ced484190a 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -245,6 +245,7 @@ test('T12091', [extra_run_opts('-fobject-code')], ghci_script,
['T12091.script'])
test('T12523', normal, ghci_script, ['T12523.script'])
test('T12024', normal, ghci_script, ['T12024.script'])
+test('T12158', expect_broken(12158), ghci_script, ['T12158.script'])
test('T12447', expect_broken(12447), ghci_script, ['T12447.script'])
test('T10249', normal, ghci_script, ['T10249.script'])
test('T12550', normal, ghci_script, ['T12550.script'])