Skip to content

Commit

Permalink
Temporary: Trigger ASAN, hopefully?
Browse files Browse the repository at this point in the history
  • Loading branch information
AtkinsSJ committed Nov 22, 2024
1 parent 5ec6c79 commit 913093a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tests/AK/TestUtf8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,13 @@ TEST_CASE(for_each_split_view)
EXPECT_EQ(gather(SplitBehavior::KeepEmpty | SplitBehavior::KeepTrailingSeparator),
Vector({ "."sv, "."sv, "."sv, "Well."sv, "."sv, "hello."sv, "friends!."sv, "."sv, "."sv, ""sv }));
}

TEST_CASE(toenoes)
{
// I really hope this correctly triggers a failure.
u8* data = static_cast<u8*>(malloc(64));
data[0] = 32;
EXPECT_EQ(data[0], 32);
free(data);
free(data);
}

0 comments on commit 913093a

Please sign in to comment.