From e7f2d0bdb556df6ffe51f92ea14cde3229382531 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 19 Oct 2018 22:49:32 +0100 Subject: [PATCH] Disable tests that only pass for GNU dialects The airy and hypergeometric functions are non-standard extensions and are only defined for -std=gnu++NN dialects, not -std=c++NN ones. * ext/special_functions/airy_ai/check_nan.cc: Skip test for non-standard extension when a strict -std=c++NN dialect is used. * ext/special_functions/airy_ai/check_value.cc: Likewise. * ext/special_functions/airy_ai/compile.cc: Likewise. * ext/special_functions/airy_bi/check_nan.cc: Likewise. * ext/special_functions/airy_bi/check_value.cc: Likewise. * ext/special_functions/airy_bi/compile.cc: Likewise. * ext/special_functions/conf_hyperg/check_nan.cc: Likewise. * ext/special_functions/conf_hyperg/check_value.cc: Likewise. * ext/special_functions/conf_hyperg/compile.cc: Likewise. * ext/special_functions/hyperg/check_nan.cc: Likewise. * ext/special_functions/hyperg/check_value.cc: Likewise. * ext/special_functions/hyperg/compile.cc: Likewise. From-SVN: r265330 --- libstdc++-v3/ChangeLog | 14 ++++++++++++++ .../ext/special_functions/airy_ai/check_nan.cc | 1 + .../ext/special_functions/airy_ai/check_value.cc | 1 + .../ext/special_functions/airy_ai/compile.cc | 1 + .../ext/special_functions/airy_bi/check_nan.cc | 1 + .../ext/special_functions/airy_bi/check_value.cc | 1 + .../ext/special_functions/airy_bi/compile.cc | 1 + .../ext/special_functions/conf_hyperg/check_nan.cc | 1 + .../special_functions/conf_hyperg/check_value.cc | 1 + .../ext/special_functions/conf_hyperg/compile.cc | 1 + .../ext/special_functions/hyperg/check_nan.cc | 1 + .../ext/special_functions/hyperg/check_value.cc | 1 + .../ext/special_functions/hyperg/compile.cc | 1 + 13 files changed, 26 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ee7823ad8f4..a3a961161bc 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,19 @@ 2018-10-19 Jonathan Wakely + * ext/special_functions/airy_ai/check_nan.cc: Skip test for + non-standard extension when a strict -std=c++NN dialect is used. + * ext/special_functions/airy_ai/check_value.cc: Likewise. + * ext/special_functions/airy_ai/compile.cc: Likewise. + * ext/special_functions/airy_bi/check_nan.cc: Likewise. + * ext/special_functions/airy_bi/check_value.cc: Likewise. + * ext/special_functions/airy_bi/compile.cc: Likewise. + * ext/special_functions/conf_hyperg/check_nan.cc: Likewise. + * ext/special_functions/conf_hyperg/check_value.cc: Likewise. + * ext/special_functions/conf_hyperg/compile.cc: Likewise. + * ext/special_functions/hyperg/check_nan.cc: Likewise. + * ext/special_functions/hyperg/check_value.cc: Likewise. + * ext/special_functions/hyperg/compile.cc: Likewise. + * testsuite/23_containers/list/requirements/explicit_instantiation/ 5_c++0x.cc: Remove redundant test that is functionally identical to the 5.cc test. diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc index c5473a35aea..563bf891b8d 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc @@ -2,6 +2,7 @@ // { dg-require-c-std "" } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // { dg-add-options ieee } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc index 8c4c5362b86..e92267bfffa 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc index a4d5006dafc..581701a6bae 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc @@ -1,5 +1,6 @@ // { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc index 4b852882b0b..07649603356 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc @@ -2,6 +2,7 @@ // { dg-require-c-std "" } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // { dg-add-options ieee } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc index d830fbf8aa5..d10c6c5f15c 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc index 727b809974d..872bc795903 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc @@ -1,5 +1,6 @@ // { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc index 0da38b158c1..4e853413fa1 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc @@ -2,6 +2,7 @@ // { dg-require-c-std "" } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // { dg-add-options ieee } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc index 1b6785e09b9..fcd673f61e7 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc @@ -1,5 +1,6 @@ // { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc index 1a19fe55854..c5064edd59d 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc @@ -1,5 +1,6 @@ // { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc index ee3b679ce9b..b974bd38860 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc @@ -2,6 +2,7 @@ // { dg-require-c-std "" } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // { dg-add-options ieee } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc index 7c907813425..4f848e614ca 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc @@ -1,6 +1,7 @@ // { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__ -ffp-contract=off" } // { dg-additional-options "-ffloat-store" { target { m68*-*-* || ia32 } } } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // // Copyright (C) 2016-2018 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc index bcf7bffdd66..35ac1c1c719 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc @@ -1,5 +1,6 @@ // { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } } // Copyright (C) 2016-2018 Free Software Foundation, Inc. // -- 2.30.2