mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
266 B
Swift
16 lines
266 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
func StringPrint() {
|
|
var str = String()
|
|
assert(str.isEmpty)
|
|
print(str)
|
|
str = "\u00B5"
|
|
assert(str.core.count == 1)
|
|
print(str)
|
|
}
|
|
|
|
StringPrint()
|
|
println() // FIXME: iOS simulator needs newline
|
|
|
|
// CHECK: µ
|