[embedded] Port Swift.String to embedded Swift

This commit is contained in:
Kuba Mracek
2024-05-04 22:57:59 -07:00
parent 7757c34c47
commit 7ae20b7039
39 changed files with 500 additions and 299 deletions

View File

@@ -0,0 +1,25 @@
// Test String operations that require unicode data tables. This is not an executable test yet, because the data tables
// are not available for linking yet.
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded
// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
public func test1() {
let string = "string"
let other = "other"
let appended = string + other
_ = appended
let _ = "aa" == "bb"
let dict: [String:Int] = [:]
_ = dict
let _ = "aaa".uppercased()
let space: Character = " "
let split = appended.split(separator: space)
_ = split
}