Skip to content

Commit 863c919

Browse files
committed
[Test] Add regression test.
For #70234 .
1 parent 1c023fd commit 863c919

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-frontend -emit-sil -verify %s
2+
3+
// REQUIRES: objc_interop
4+
5+
import Foundation
6+
7+
func mutateText(_ rawText: NSString?) -> String {
8+
guard let text = consume rawText else {
9+
return "text unavailable"
10+
}
11+
return String(text)
12+
}

0 commit comments

Comments
 (0)