Files
swift-mirror/validation-test/embedded/rdar126965232.swift
Nate Chandler 9d42d69c0a [PrunedLiveness] Fix boundary check for dead-ends.
Consider dead, dead-end blocks within the availability boundary to be
within the boundary.

rdar://126965232
2024-05-16 15:53:06 -07:00

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
}
}