Files
swift-mirror/test/SILOptimizer/dead_func.swift
Ben Cohen 345879429b [stdlib] Take several underscored stdlib functions private (#18134)
* 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
2018-07-24 18:26:19 -07:00

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
}