diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-19 17:12:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-01-13 22:32:44 +0300 |
commit | 818bcfa0dbbc1ef48bc3fe1f0c14d12866c51ef2 (patch) | |
tree | 08439f9422ff739e6b6e69f8f4623725a5ee367d /xsd-tests | |
parent | 2615896faa646e5830abf2c269150e1165c66515 (diff) |
Various fixes
Diffstat (limited to 'xsd-tests')
-rw-r--r-- | xsd-tests/cxx/parser/validation/built-in/float/driver.cxx | 8 | ||||
-rw-r--r-- | xsd-tests/cxx/parser/validation/built-in/int/driver.cxx | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/xsd-tests/cxx/parser/validation/built-in/float/driver.cxx b/xsd-tests/cxx/parser/validation/built-in/float/driver.cxx index 40c089b..1943be9 100644 --- a/xsd-tests/cxx/parser/validation/built-in/float/driver.cxx +++ b/xsd-tests/cxx/parser/validation/built-in/float/driver.cxx @@ -219,6 +219,11 @@ main () // float // + // Note that some standard libraries recognize the [+-](INF|INFINITY) + // strings (notably libc++) and some of them don't (notably libstdc++; see + // LWG #2381 for details). + // +#if 0 { float_pimpl<char> p; p.pre (); @@ -226,6 +231,7 @@ main () p._characters ("+INF"); assert (test_post_fail (p)); } +#endif { float_pimpl<char> p; @@ -237,6 +243,7 @@ main () // double // +#if 0 { double_pimpl<char> p; p.pre (); @@ -244,6 +251,7 @@ main () p._characters ("+INF"); assert (test_post_fail (p)); } +#endif { double_pimpl<char> p; diff --git a/xsd-tests/cxx/parser/validation/built-in/int/driver.cxx b/xsd-tests/cxx/parser/validation/built-in/int/driver.cxx index 6c3ab78..f3eee1b 100644 --- a/xsd-tests/cxx/parser/validation/built-in/int/driver.cxx +++ b/xsd-tests/cxx/parser/validation/built-in/int/driver.cxx @@ -49,7 +49,7 @@ main () p._pre (); p._characters ("-2147483648"); p._post (); - assert (p.post_int () == -2147483648); + assert (p.post_int () == -2147483647 - 1); } { |