Skip to content

Commit 029e1e6

Browse files
authored
Merge pull request swiftlang#35336 from atrick/fix-bridgetestlifetime
2 parents 3fb6ec6 + ba4577e commit 029e1e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/BridgeStorage.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ allTests.test("_BridgeStorage") {
145145
expectTrue(b.unflaggedNativeInstance === c)
146146
expectFalse(b.isUniquelyReferencedUnflaggedNative())
147147
}
148+
// Keep 'c' alive for the isUniquelyReferenced check above.
149+
_fixLifetime(c)
148150
}
149151

150152
}

0 commit comments

Comments
 (0)