mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Consider dead, dead-end blocks within the availability boundary to be within the boundary. rdar://126965232
26 lines
688 B
Swift
26 lines
688 B
Swift
// RUN: %target-swiftc_driver \
|
|
// RUN: -c \
|
|
// RUN: %s \
|
|
// RUN: -Xfrontend -sil-verify-all \
|
|
// RUN: -enable-experimental-feature Embedded \
|
|
// RUN: -wmo \
|
|
// RUN: -Osize \
|
|
// RUN: -o %t/bin
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: optimized_stdlib
|
|
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
|
|
class MyClass {
|
|
var x: Int? = nil
|
|
var enabled: Bool = true
|
|
}
|
|
|
|
public func app_main() {
|
|
let object = MyClass()
|
|
while true {
|
|
let enabled = object.enabled
|
|
object.enabled = !enabled
|
|
}
|
|
}
|