Skip to content

Commit

Permalink
disable maybe uninitialized error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vighnesh-V committed Oct 11, 2024
1 parent 0e1504f commit 38d76e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TypeVar.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ TEST_CASE("proof_that_isBoolean_uses_all_of")

TEST_CASE("content_reassignment")
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "maybe-uninitialized"
Type myAny{AnyType{}, /*presistent*/ true};
myAny.documentationSymbol = "@global/any";

Expand All @@ -477,6 +479,7 @@ TEST_CASE("content_reassignment")
CHECK(!futureAny->persistent);
CHECK(futureAny->documentationSymbol == "@global/any");
CHECK(futureAny->owningArena == &arena);
#pragma GCC diagnostic pop
}

TEST_SUITE_END();

0 comments on commit 38d76e6

Please sign in to comment.