From 277ec793cbb5053626a75bcfdb82af03fc735b3e Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Fri, 6 Nov 2015 19:43:33 +0000 Subject: [PATCH] * testsuite/26_numerics/complex/requirements/constexpr.cc * testsuite/26_numerics/complex/requirements/constexpr_functions.cc: Use constexpr where needed. From-SVN: r229883 --- libstdc++-v3/ChangeLog | 6 ++++++ .../26_numerics/complex/requirements/constexpr_functions.cc | 2 +- .../26_numerics/complex/value_operations/constexpr.cc | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 167d3ca74c6..9b50f1cd17e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-11-06 Kai Tietz + + * testsuite/26_numerics/complex/requirements/constexpr.cc + * testsuite/26_numerics/complex/requirements/constexpr_functions.cc: + Use constexpr where needed. + 2015-11-06 David Malcolm * testsuite/lib/libstdc++.exp (v3_target_compile): Add diff --git a/libstdc++-v3/testsuite/26_numerics/complex/requirements/constexpr_functions.cc b/libstdc++-v3/testsuite/26_numerics/complex/requirements/constexpr_functions.cc index c125a32ca6a..28a6d2cca2c 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/requirements/constexpr_functions.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/requirements/constexpr_functions.cc @@ -34,7 +34,7 @@ namespace __gnu_test void __constraint() { typedef typename _Ttesttype::_ComplexT _ComplexT; - const _ComplexT cc = { 1.1 }; + constexpr _ComplexT cc = { 1.1 }; constexpr _Ttesttype a(cc); constexpr auto v1 __attribute__((unused)) = a.real(); constexpr auto v2 __attribute__((unused)) = a.imag(); diff --git a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr.cc b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr.cc index c7089a953a4..c3170c15fcd 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr.cc @@ -34,7 +34,7 @@ namespace __gnu_test void __constraint() { typedef typename _Ttesttype::_ComplexT _ComplexT; - const _ComplexT cc = { 1.1 }; + constexpr _ComplexT cc = { 1.1 }; constexpr _Ttesttype a(cc); constexpr auto v1 __attribute__((unused)) = real(a); constexpr auto v2 __attribute__((unused)) = imag(a); -- 2.30.2