mirror of
https://github.com/luau-lang/luau.git
synced 2025-01-19 17:28:06 +00:00
disable maybe uninitialized error
This commit is contained in:
parent
0e1504fa52
commit
38d76e658d
1 changed files with 3 additions and 0 deletions
|
@ -465,6 +465,8 @@ TEST_CASE("proof_that_isBoolean_uses_all_of")
|
||||||
|
|
||||||
TEST_CASE("content_reassignment")
|
TEST_CASE("content_reassignment")
|
||||||
{
|
{
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "maybe-uninitialized"
|
||||||
Type myAny{AnyType{}, /*presistent*/ true};
|
Type myAny{AnyType{}, /*presistent*/ true};
|
||||||
myAny.documentationSymbol = "@global/any";
|
myAny.documentationSymbol = "@global/any";
|
||||||
|
|
||||||
|
@ -477,6 +479,7 @@ TEST_CASE("content_reassignment")
|
||||||
CHECK(!futureAny->persistent);
|
CHECK(!futureAny->persistent);
|
||||||
CHECK(futureAny->documentationSymbol == "@global/any");
|
CHECK(futureAny->documentationSymbol == "@global/any");
|
||||||
CHECK(futureAny->owningArena == &arena);
|
CHECK(futureAny->owningArena == &arena);
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_SUITE_END();
|
TEST_SUITE_END();
|
||||||
|
|
Loading…
Reference in a new issue