Commit ba4577e
committed
Add a _fixLifetime to stdlib/BridgeStorage.swift test.
Otherwise, this uniqueness check will unexpectedly succeed when tests
run in optimize mode and 'c' is destroyed early:
let c = C()
var b = B(native: c, isFlagged: flag)
//...
expectFalse(b.isUniquelyReferencedUnflaggedNative())
// Keep 'c' alive for the isUniquelyReferenced check above.
_fixLifetime(c)
Fixes rdar://72957398 ([CanonicalOSSA] Add a _fixLifetime to
stdlib/BridgeStorage.swift test.)1 parent d25ce3d commit ba4577e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
0 commit comments