From fe18c518cf476ea5a2c3eede8bf6b994ec3105f2 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 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xsd-tests/cxx/parser/validation/built-in/float/driver.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; -- cgit v1.1