File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,13 @@ extension Issue {
239
239
// MARK: - Debugging failures
240
240
241
241
/// A unique value used by ``failureBreakpoint()``.
242
- @usableFromInline @exclusivity ( unchecked) nonisolated ( unsafe) var failureBreakpointValue = 0
242
+ @usableFromInline
243
+ #if !os(Windows)
244
+ // Work around compiler bug by not specifying unchecked exclusivity on Windows.
245
+ // SEE: https://github.com/swiftlang/swift/issues/76279
246
+ @exclusivity ( unchecked)
247
+ #endif
248
+ nonisolated ( unsafe) var failureBreakpointValue = 0
243
249
244
250
/// A function called by the testing library when a failure occurs.
245
251
///
@@ -272,5 +278,5 @@ func failureBreakpoint() {
272
278
// opportunities elsewhere. Instead, this function performs a trivial
273
279
// operation on a usable-from-inline value, which the compiler must assume
274
280
// cannot be optimized away.
275
- failureBreakpointValue = 1
281
+ failureBreakpointValue = 0
276
282
}
You can’t perform that action at this time.
0 commit comments