mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ASAN detected stack-use-after-scope errors. Disable tests while fixing. rdar://problem/73984220
22 lines
709 B
Swift
22 lines
709 B
Swift
// rdar://problem/73984220
|
|
// XFAIL: asan
|
|
func simple(completion: (String?, Error?) -> Void) { }
|
|
|
|
func mismatches() {
|
|
// RUN: not %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3
|
|
simple()
|
|
|
|
// RUN: not %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3
|
|
simple(10) { res, err in
|
|
print("call mismatch")
|
|
}
|
|
|
|
// RUN: not %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3
|
|
simple { res in
|
|
print("closure mismatch")
|
|
}
|
|
}
|
|
|
|
// RUN: not %refactor -add-async-alternative -dump-text -source-filename %s -pos=%(line+1):1
|
|
func missingBody(complete: (Int?, Error?) -> Void)
|