Commit 46f24016 authored by Keith Smiley's avatar Keith Smiley Committed by Adam Cozzette

Use GetArena instead

parent c40ab0ff
......@@ -1345,10 +1345,8 @@ TEST(ArenaTest, GetArenaShouldReturnNullForNonArenaCompatibleTypes) {
// Test that GetArena returns nullptr for types that have a GetArena alias.
struct {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-local-typedef"
using GetArena = Arena*;
#pragma GCC diagnostic pop
GetArena unused;
} has_get_arena_alias;
EXPECT_EQ(nullptr, Arena::GetArena(&has_get_arena_alias));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment