mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Make _sanityCheck internal * Make _debugPrecondition internal * Make Optional._unsafelyUnwrappedUnchecked internal. * Make _precondition internal * Switch Foundation _sanityChecks to assertions * Update file check tests * Remove one more _debugPrecondition * Update Optimization-with-check tests
12 lines
196 B
Swift
12 lines
196 B
Swift
// RUN: %target-swift-frontend %s -O -emit-sil
|
|
|
|
// Make sure we are not crashing on this one.
|
|
|
|
var a : [String] = ["foo"]
|
|
|
|
preconditionFailure("unreachable")
|
|
for i in 0...a.count {
|
|
let x = 0
|
|
}
|
|
|