mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[embedded] Port Swift.String to embedded Swift
This commit is contained in:
25
test/embedded/stdlib-strings-datatables.swift
Normal file
25
test/embedded/stdlib-strings-datatables.swift
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user