Commit 277ec793 by Kai Tietz Committed by Jason Merrill

* testsuite/26_numerics/complex/requirements/constexpr.cc

	* testsuite/26_numerics/complex/requirements/constexpr_functions.cc:
	Use constexpr where needed.

From-SVN: r229883
parent 9da92cbd
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> 2015-11-06 David Malcolm <dmalcolm@redhat.com>
* testsuite/lib/libstdc++.exp (v3_target_compile): Add * testsuite/lib/libstdc++.exp (v3_target_compile): Add
......
...@@ -34,7 +34,7 @@ namespace __gnu_test ...@@ -34,7 +34,7 @@ namespace __gnu_test
void __constraint() void __constraint()
{ {
typedef typename _Ttesttype::_ComplexT _ComplexT; typedef typename _Ttesttype::_ComplexT _ComplexT;
const _ComplexT cc = { 1.1 }; constexpr _ComplexT cc = { 1.1 };
constexpr _Ttesttype a(cc); constexpr _Ttesttype a(cc);
constexpr auto v1 __attribute__((unused)) = a.real(); constexpr auto v1 __attribute__((unused)) = a.real();
constexpr auto v2 __attribute__((unused)) = a.imag(); constexpr auto v2 __attribute__((unused)) = a.imag();
......
...@@ -34,7 +34,7 @@ namespace __gnu_test ...@@ -34,7 +34,7 @@ namespace __gnu_test
void __constraint() void __constraint()
{ {
typedef typename _Ttesttype::_ComplexT _ComplexT; typedef typename _Ttesttype::_ComplexT _ComplexT;
const _ComplexT cc = { 1.1 }; constexpr _ComplexT cc = { 1.1 };
constexpr _Ttesttype a(cc); constexpr _Ttesttype a(cc);
constexpr auto v1 __attribute__((unused)) = real(a); constexpr auto v1 __attribute__((unused)) = real(a);
constexpr auto v2 __attribute__((unused)) = imag(a); constexpr auto v2 __attribute__((unused)) = imag(a);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment