Skip to content

Commit f54e7b4

Browse files
committed
[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
1 parent 13700c3 commit f54e7b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/test/std/numerics/c.math/abs.pass.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int main(int, char**)
4747
{
4848
// On some systems char is unsigned.
4949
// If that is the case, we should just test signed char twice.
50-
typedef typename std::conditional<
50+
typedef std::conditional<
5151
std::is_signed<char>::value, char, signed char
5252
>::type SignedChar;
5353

@@ -63,10 +63,10 @@ int main(int, char**)
6363

6464
// Here there is no guarantee that int is larger than int8_t so we
6565
// use a helper type trait to conditional test against int.
66-
test_abs<std::int8_t, typename correct_size_int<std::int8_t>::type>();
67-
test_abs<std::int16_t, typename correct_size_int<std::int16_t>::type>();
68-
test_abs<std::int32_t, typename correct_size_int<std::int32_t>::type>();
69-
test_abs<std::int64_t, typename correct_size_int<std::int64_t>::type>();
66+
test_abs<std::int8_t, correct_size_int<std::int8_t>::type>();
67+
test_abs<std::int16_t, correct_size_int<std::int16_t>::type>();
68+
test_abs<std::int32_t, correct_size_int<std::int32_t>::type>();
69+
test_abs<std::int64_t, correct_size_int<std::int64_t>::type>();
7070

7171
test_abs<long double, long double>();
7272
test_abs<double, double>();

0 commit comments

Comments
 (0)