Commit Graph

6 Commits

Author SHA1 Message Date
Allan Shortlidge
7449365cab Tests: Update tagged string tests in stdlib/BridgeStorage.swift.
The Swift compiler no longer supports any deployment targets that don't have
tagged NSStrings.

Resolves rdar://121343971
2024-01-24 16:50:31 -08:00
Andrew Trick
ba4577e90e 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.)
2021-01-08 22:57:36 -08:00
Ben Rimmington
682c1672b6 [stdlib] Update file headers of de-gybbed files 2020-04-01 22:14:03 +01:00
Erik Eckstein
5f01b0d1b3 tests: make two tests more resilient to destroy hoisting 2019-08-29 10:49:54 +02:00
Karoy Lorentey
c4c4c17871 [stdlib] _BridgeStorage: Remove second type parameter (ObjCClass)
It used to be a shadow protocol existential, but now it’s invariably AnyObject.
I see no reason to keep supporting this unused abstraction.
2018-11-15 09:54:25 +00:00
Karoy Lorentey
6593817e81 [test] Update BridgeStorage tests 2018-10-31 12:19:52 +00:00