diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:47:26 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:47:26 +0000 |
| commit | 51072bd6bf79ef2bc6a922079bff57c31c1effbc (patch) | |
| tree | 91a2effbc9e6f80bdbbf9eb70e06c51ad0867ea0 /test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp | |
| parent | bb5e33f003797b67974a8893f7f2930fc51b8210 (diff) | |
Notes
Diffstat (limited to 'test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp')
| -rw-r--r-- | test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp b/test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp index 068222a273735..e1b98ecd06777 100644 --- a/test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp +++ b/test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp @@ -36,11 +36,11 @@ void test_edges() { typedef std::complex<double> C; const double pi = std::atan2(+0., -0.); - const unsigned N = sizeof(x) / sizeof(x[0]); + const unsigned N = sizeof(testcases) / sizeof(testcases[0]); for (unsigned i = 0; i < N; ++i) { - std::complex<double> r = sin(x[i]); - std::complex<double> t1(-imag(x[i]), real(x[i])); + std::complex<double> r = sin(testcases[i]); + std::complex<double> t1(-imag(testcases[i]), real(testcases[i])); std::complex<double> t2 = sinh(t1); std::complex<double> z(imag(t2), -real(t2)); if (std::isnan(real(r))) |
