diff options
| author | Hugo Herbelin | 2020-03-29 17:38:38 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2020-03-29 17:38:38 +0200 |
| commit | 8d1382b996d9421162839c3f481e866fef06fd41 (patch) | |
| tree | 0305c0f966f2ce738c4b78d07bc41334cf6a840e /test-suite/output/FloatSyntax.out | |
| parent | 6455f44c7a6babb1f2490eaca216469e0c450a00 (diff) | |
| parent | ed399336b886a062e0e3070314c117d62d9a8af3 (diff) | |
Merge PR #11859: Warn when non exactly parsing non floating-point
Ack-by: SkySkimmer
Reviewed-by: Zimmi48
Reviewed-by: erikmd
Diffstat (limited to 'test-suite/output/FloatSyntax.out')
| -rw-r--r-- | test-suite/output/FloatSyntax.out | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test-suite/output/FloatSyntax.out b/test-suite/output/FloatSyntax.out index 668a55977d..7941d2e647 100644 --- a/test-suite/output/FloatSyntax.out +++ b/test-suite/output/FloatSyntax.out @@ -4,8 +4,16 @@ : float (-2.5)%float : float +File "stdin", line 9, characters 6-13: +Warning: The constant 2.5e123 is not a binary64 floating-point value. A +closest value will be used and unambiguously printed 2.4999999999999999e+123. +[inexact-float,parsing] 2.4999999999999999e+123%float : float +File "stdin", line 10, characters 7-16: +Warning: The constant -2.5e-123 is not a binary64 floating-point value. A +closest value will be used and unambiguously printed +-2.5000000000000001e-123. [inexact-float,parsing] (-2.5000000000000001e-123)%float : float (2 + 2)%float @@ -18,14 +26,34 @@ : float -2.5 : float +File "stdin", line 19, characters 6-13: +Warning: The constant 2.5e123 is not a binary64 floating-point value. A +closest value will be used and unambiguously printed 2.4999999999999999e+123. +[inexact-float,parsing] 2.4999999999999999e+123 : float +File "stdin", line 20, characters 7-16: +Warning: The constant -2.5e-123 is not a binary64 floating-point value. A +closest value will be used and unambiguously printed +-2.5000000000000001e-123. [inexact-float,parsing] -2.5000000000000001e-123 : float 2 + 2 : float 2.5 + 2.5 : float +File "stdin", line 24, characters 6-11: +Warning: The constant 1e309 is not a binary64 floating-point value. A closest +value will be used and unambiguously printed infinity. +[inexact-float,parsing] +infinity + : float +File "stdin", line 25, characters 6-12: +Warning: The constant -1e309 is not a binary64 floating-point value. A +closest value will be used and unambiguously printed neg_infinity. +[inexact-float,parsing] +neg_infinity + : float 2 : nat 2%float |
