Files
swift-mirror/test/SILOptimizer/simplify_cfg_crash.swift
Erik Eckstein 2f124cf564 Remove the -enable-ossa-modules option.
OSSA modules are enabled by default.
The compiler still accepts this option but it has no effect.
2025-09-26 08:01:08 +02:00

17 lines
239 B
Swift

// RUN: %target-swift-frontend -O %s -emit-sil -o /dev/null
public class X {}
public func testit(_ s: [X]) -> X? {
var r: X?
for e in s {
if r == nil {
r = e
} else if e !== r {
return nil
}
}
return r
}