mirror of
https://github.com/apple/swift.git
synced 2026-10-10 13:50:43 +02:00
13 lines
446 B
Swift
13 lines
446 B
Swift
// {"extraArgs":["-experimental-allow-module-with-compiler-errors"],"kind":"emit-sil","original":"69cabaab","signature":"(anonymous namespace)::DiagnoseInvalidEscapingCaptures::run()","signatureNext":"SILPassManager::runPassOnFunction"}
|
|
// RUN: not --crash %target-swift-frontend -emit-sil -experimental-allow-module-with-compiler-errors %s
|
|
func a(b: inout [Int]) {
|
|
func c() {
|
|
b
|
|
}
|
|
struct d {
|
|
var e: () -> Void {
|
|
c
|
|
}
|
|
}
|
|
}
|