mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Silence some MSVC warnings about zero extending unsigned to void*
llvm-svn: 260413
This commit is contained in:
parent
02e161e44f
commit
b554ce57f4
@ -70,8 +70,8 @@ TEST(raw_ostreamTest, Types_Buffered) {
|
||||
|
||||
// void*
|
||||
EXPECT_EQ("0x0", printToString((void*) nullptr));
|
||||
EXPECT_EQ("0xbeef", printToString((void*) 0xbeef));
|
||||
EXPECT_EQ("0xdeadbeef", printToString((void*) 0xdeadbeef));
|
||||
EXPECT_EQ("0xbeef", printToString((void*) 0xbeefLL));
|
||||
EXPECT_EQ("0xdeadbeef", printToString((void*) 0xdeadbeefLL));
|
||||
|
||||
// Min and max.
|
||||
EXPECT_EQ("18446744073709551615", printToString(UINT64_MAX));
|
||||
@ -101,8 +101,8 @@ TEST(raw_ostreamTest, Types_Unbuffered) {
|
||||
|
||||
// void*
|
||||
EXPECT_EQ("0x0", printToStringUnbuffered((void*) nullptr));
|
||||
EXPECT_EQ("0xbeef", printToStringUnbuffered((void*) 0xbeef));
|
||||
EXPECT_EQ("0xdeadbeef", printToStringUnbuffered((void*) 0xdeadbeef));
|
||||
EXPECT_EQ("0xbeef", printToStringUnbuffered((void*) 0xbeefLL));
|
||||
EXPECT_EQ("0xdeadbeef", printToStringUnbuffered((void*) 0xdeadbeefLL));
|
||||
|
||||
// Min and max.
|
||||
EXPECT_EQ("18446744073709551615", printToStringUnbuffered(UINT64_MAX));
|
||||
|
Loading…
x
Reference in New Issue
Block a user