diff options
author | Kai Tietz <ktietz70@googlemail.com> | 2015-11-06 19:43:33 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-11-06 14:43:33 -0500 |
commit | 277ec793cbb5053626a75bcfdb82af03fc735b3e (patch) | |
tree | 10aee809439d7f92272bbb26d3acf89544ae7cf0 | |
parent | 9da92cbda9b73a179f031d4d362b5374f9fcaa09 (diff) | |
download | gcc-277ec793cbb5053626a75bcfdb82af03fc735b3e.zip gcc-277ec793cbb5053626a75bcfdb82af03fc735b3e.tar.gz gcc-277ec793cbb5053626a75bcfdb82af03fc735b3e.tar.bz2 |
* testsuite/26_numerics/complex/requirements/constexpr.cc
* testsuite/26_numerics/complex/requirements/constexpr_functions.cc:
Use constexpr where needed.
From-SVN: r229883
3 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 167d3ca..9b50f1c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-11-06 Kai Tietz <ktietz70@googlemail.com> + + * testsuite/26_numerics/complex/requirements/constexpr.cc + * testsuite/26_numerics/complex/requirements/constexpr_functions.cc: + Use constexpr where needed. + 2015-11-06 David Malcolm <dmalcolm@redhat.com> * 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 c125a32..28a6d2c 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 c7089a9..c3170c1 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); |