We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e897a9 commit 86d560fCopy full SHA for 86d560f
libcxx/test/std/numerics/c.math/abs.pass.cpp
@@ -41,8 +41,14 @@ void test_big()
41
42
int main(int, char**)
43
{
44
+ // On some systems char is unsigned.
45
+ // If that is the case, we should just test signed char twice.
46
+ typedef typename std::conditional<
47
+ std::is_signed<char>::value, char, signed char
48
+ >::type SignedChar;
49
+
50
test_abs<short int, typename correct_size_int<short int>::type>();
- test_abs<char, typename correct_size_int<char>::type>();
51
+ test_abs<SignedChar, typename correct_size_int<SignedChar>::type>();
52
test_abs<signed char, typename correct_size_int<signed char>::type>();
53
54
test_abs<int, typename correct_size_int<int>::type>();
0 commit comments