diff options
author | Reid Kleckner <reid@kleckner.net> | 2009-07-23 22:27:18 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2009-07-23 22:27:18 +0000 |
commit | 535c9c3c9dda57c8aa2d96403864c57a55cd1bf3 (patch) | |
tree | e137d978cfb2356f7598ed157aeb4773a8133380 /unittests | |
parent | 10b4fc552f984dc978298d50c09c97c0764962fc (diff) |
Fixing unittests on 32-bit Darwin, using 0x...ULL instead of 0x...U .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp b/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp index f9b3a03c38..d56a52a430 100644 --- a/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp @@ -187,11 +187,11 @@ TEST(JITMemoryManagerTest, TestSmallGlobalInts) { EXPECT_EQ(0xffffffffU, *c); EXPECT_EQ(0U, *d); *c = 0U; - *d = 0xffffffffffffffffU; + *d = 0xffffffffffffffffULL; EXPECT_EQ(0U, *a); EXPECT_EQ(0U, *b); EXPECT_EQ(0U, *c); - EXPECT_EQ(0xffffffffffffffffU, *d); + EXPECT_EQ(0xffffffffffffffffULL, *d); // Make sure we didn't allocate any extra slabs for this tiny amount of data. EXPECT_EQ(1U, MemMgr->GetNumDataSlabs()); @@ -217,11 +217,11 @@ TEST(JITMemoryManagerTest, TestLargeGlobalArray) { memset(a, 0x1, 8); memset(g, 0x2, Size); memset(b, 0x3, 8); - EXPECT_EQ(0x0101010101010101U, *a); + EXPECT_EQ(0x0101010101010101ULL, *a); // Just check the edges. EXPECT_EQ(0x02U, g[0]); EXPECT_EQ(0x02U, g[Size - 1]); - EXPECT_EQ(0x0303030303030303U, *b); + EXPECT_EQ(0x0303030303030303ULL, *b); // Check the number of slabs. EXPECT_EQ(2U, MemMgr->GetNumDataSlabs()); |