From fea8db080353e408a38ad9b66b50b1c9dfaf96de Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 19 Dec 2020 17:12:05 +0300 Subject: Various fixes --- xsd-tests/cxx/parser/validation/built-in/float/driver.cxx | 8 ++++++++ xsd-tests/cxx/parser/validation/built-in/int/driver.cxx | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'xsd-tests/cxx') 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 bb67eb7..e92c419 100644 --- a/xsd-tests/cxx/parser/validation/built-in/float/driver.cxx +++ b/xsd-tests/cxx/parser/validation/built-in/float/driver.cxx @@ -207,6 +207,11 @@ main () // float // + // Note that some standard libraries recognize the [+-](INF|INFINITY) + // strings (notably libc++) and some of them don't (notably msvc and + // libstdc++; see Library Working Group (LWG) issue 2381 for details). + // +#ifndef _LIBCPP_VERSION { float_pimpl p; p.pre (); @@ -214,6 +219,7 @@ main () p._characters ("+INF"); assert (test_post_fail (p)); } +#endif { float_pimpl p; @@ -225,6 +231,7 @@ main () // double // +#ifndef _LIBCPP_VERSION { double_pimpl p; p.pre (); @@ -232,6 +239,7 @@ main () p._characters ("+INF"); assert (test_post_fail (p)); } +#endif { double_pimpl 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 d31d206..270cd0e 100644 --- a/xsd-tests/cxx/parser/validation/built-in/int/driver.cxx +++ b/xsd-tests/cxx/parser/validation/built-in/int/driver.cxx @@ -37,7 +37,7 @@ main () p._pre (); p._characters ("-2147483648"); p._post (); - assert (p.post_int () == -2147483648); + assert (p.post_int () == -2147483647 - 1); } { -- cgit v1.1