From f54e7b4e3a131f74006682387469bda0a2377bbf Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Fri, 14 Feb 2020 16:03:25 +0100 Subject: [PATCH] [libc++] Remove unnecessary typenames from std/numerics/c.math/abs.pass.cpp There are some unnecessary typenames in std/numerics/c.math/abs.pass.cpp; e.g. they're not in a dependent context. Patch by Bryce Adelstein Lelbach Differential Revision: https://reviews.llvm.org/D72106 --- libcxx/test/std/numerics/c.math/abs.pass.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libcxx/test/std/numerics/c.math/abs.pass.cpp b/libcxx/test/std/numerics/c.math/abs.pass.cpp index 3993dd34318a..03aae465c257 100644 --- a/libcxx/test/std/numerics/c.math/abs.pass.cpp +++ b/libcxx/test/std/numerics/c.math/abs.pass.cpp @@ -47,7 +47,7 @@ int main(int, char**) { // On some systems char is unsigned. // If that is the case, we should just test signed char twice. - typedef typename std::conditional< + typedef std::conditional< std::is_signed::value, char, signed char >::type SignedChar; @@ -63,10 +63,10 @@ int main(int, char**) // Here there is no guarantee that int is larger than int8_t so we // use a helper type trait to conditional test against int. - test_abs::type>(); - test_abs::type>(); - test_abs::type>(); - test_abs::type>(); + test_abs::type>(); + test_abs::type>(); + test_abs::type>(); + test_abs::type>(); test_abs(); test_abs();