* testsuite/26_numerics/complex/requirements/constexpr.cc
authorKai Tietz <ktietz70@googlemail.com>
Fri, 6 Nov 2015 19:43:33 +0000 (19:43 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 6 Nov 2015 19:43:33 +0000 (14:43 -0500)
* testsuite/26_numerics/complex/requirements/constexpr_functions.cc:
Use constexpr where needed.

From-SVN: r229883

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/complex/requirements/constexpr_functions.cc
libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr.cc

index 167d3ca74c6e3e11cf796d7465d051c1e4c830b7..9b50f1cd17edf941d880c05b3a9839907b80ad07 100644 (file)
@@ -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
index c125a32ca6a4ebbc46cde5dbdd32e6e9f8677359..28a6d2cca2c92c1861811bbc69ad0206296f3b73 100644 (file)
@@ -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();
index c7089a953a4408d15ee30e919a52b1a8dbb0effb..c3170c15fcd38fa3fbe7b9df900f9a979298d8cc 100644 (file)
@@ -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);