Skip to content

Commit 9e5616d

Browse files
committed
[libc][test] fix wrong expectation in LlvmLibcMemAlignmentTest.SpecificAlignment
1 parent 778f87d commit 9e5616d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/stdlib/memalignment_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ TEST(LlvmLibcMemAlignmentTest, SpecificAlignment) {
3939

4040
uintptr_t addr_complex = 0x1234560; // 16-byte aligned (ends in 0)
4141
void *ptr_complex = reinterpret_cast<void *>(addr_complex);
42-
EXPECT_EQ(LIBC_NAMESPACE::memalignment(ptr_complex), static_cast<size_t>(16));
42+
EXPECT_EQ(LIBC_NAMESPACE::memalignment(ptr_complex), static_cast<size_t>(32));
4343
}
4444

4545
TEST(LlvmLibcMemAlignmentTest, AlignasSpecifiedAlignment) {

0 commit comments

Comments
 (0)