summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/tests/numeric/should_run/T20424.hs5
-rw-r--r--testsuite/tests/numeric/should_run/T20424.stdout4
-rw-r--r--testsuite/tests/numeric/should_run/all.T1
3 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/numeric/should_run/T20424.hs b/testsuite/tests/numeric/should_run/T20424.hs
new file mode 100644
index 0000000000..bc8e2c51ba
--- /dev/null
+++ b/testsuite/tests/numeric/should_run/T20424.hs
@@ -0,0 +1,5 @@
+main :: IO ()
+main = do
+ print $ (asinh 0 :: Double)
+ print $ (atanh (-0) :: Double)
+ print $ (asinh 1e300 :: Double)
diff --git a/testsuite/tests/numeric/should_run/T20424.stdout b/testsuite/tests/numeric/should_run/T20424.stdout
new file mode 100644
index 0000000000..60a062b2c6
--- /dev/null
+++ b/testsuite/tests/numeric/should_run/T20424.stdout
@@ -0,0 +1,4 @@
+0.0
+-0.0
+691.4686750787736
+
diff --git a/testsuite/tests/numeric/should_run/all.T b/testsuite/tests/numeric/should_run/all.T
index 68888545f8..2ef0b0ec14 100644
--- a/testsuite/tests/numeric/should_run/all.T
+++ b/testsuite/tests/numeric/should_run/all.T
@@ -78,3 +78,4 @@ test('T19931', normal, compile_and_run, ['-O2'])
test('IntegerToFloat', normal, compile_and_run, [''])
test('T20291', normal, compile_and_run, [''])
+test('T20424', normal, compile_and_run, [''])