summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci
diff options
context:
space:
mode:
authormniip <mniip@mniip.com>2020-04-22 23:43:39 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-04-23 18:33:21 -0400
commit0ac29c885fba7ed69de83a597cdbd03696c9ed13 (patch)
tree9d502f1e790d0d840a8dfb0326921ad739244eb1 /testsuite/tests/ghci
parent2c23e2e37d6c937a425c53da643aec90bda01ef6 (diff)
downloadhaskell-0ac29c885fba7ed69de83a597cdbd03696c9ed13.tar.gz
GHC.Prim docs: note and test
Diffstat (limited to 'testsuite/tests/ghci')
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
-rw-r--r--testsuite/tests/ghci/scripts/ghci066.script2
-rw-r--r--testsuite/tests/ghci/scripts/ghci066.stdout1
3 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index 7bb6043b8b..fd0ac2ce3a 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -105,6 +105,7 @@ test('ghci062', [extra_files(['ghci062/', 'ghci062/Test.hs']),
test('ghci063', normal, ghci_script, ['ghci063.script'])
test('ghci064', normal, ghci_script, ['ghci064.script'])
test('ghci065', [extra_hc_opts("-haddock")], ghci_script, ['ghci065.script'])
+test('ghci066', normal, ghci_script, ['ghci066.script'])
test('T2452', [extra_hc_opts("-fno-implicit-import-qualified")],
ghci_script, ['T2452.script'])
test('T2766', normal, ghci_script, ['T2766.script'])
diff --git a/testsuite/tests/ghci/scripts/ghci066.script b/testsuite/tests/ghci/scripts/ghci066.script
new file mode 100644
index 0000000000..7fb4be7520
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/ghci066.script
@@ -0,0 +1,2 @@
+:set -XMagicHash
+:doc GHC.Prim.byteSwap#
diff --git a/testsuite/tests/ghci/scripts/ghci066.stdout b/testsuite/tests/ghci/scripts/ghci066.stdout
new file mode 100644
index 0000000000..ab85afa1a6
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/ghci066.stdout
@@ -0,0 +1 @@
+Swap bytes in a word.