Files
swift-mirror/test/Interpreter/mandatory_inlining.swift
Daniel Rodríguez Troitiño 9d22cbb13e [test] Mark mandatory_inlining.swift as executable.
Otherwise the Android CI will fail this test, since no device is
actually attached.
2019-05-20 17:10:55 -07:00

22 lines
308 B
Swift

// RUN: %target-run-simple-swift
// REQUIRES: executable_test
func test(reportError: ((String) -> (Void))? = nil) {
let reportError = reportError ?? { error in
print(error)
}
for _ in 0..<1 {
reportError("foo bar baz")
}
}
func main() {
test { error in
print(error)
}
}
main()