diff options
Diffstat (limited to 'test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp')
| -rw-r--r-- | test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp b/test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp index 69bc95240141..8cc71f7bff27 100644 --- a/test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp +++ b/test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp @@ -35,11 +35,11 @@ test() void test_edges() { typedef std::complex<double> C; - 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 = atan(x[i]); - std::complex<double> t1(-imag(x[i]), real(x[i])); + std::complex<double> r = atan(testcases[i]); + std::complex<double> t1(-imag(testcases[i]), real(testcases[i])); std::complex<double> t2 = atanh(t1); std::complex<double> z(imag(t2), -real(t2)); if (std::isnan(real(r))) |
