mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
There's still work left to do. In terms of next steps, there's still rdar://problem/22126141, which covers removing the 'workaround' overloads for print (that prevent bogus overload resolution failures), as well as providing a decent diagnostic when users invoke print with 'appendNewline'. Swift SVN r30976
18 lines
497 B
Swift
18 lines
497 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
// CHECK: 123ABCD
|
|
// CHECK: Hello ☃
|
|
// CHECK: Hello ☃
|
|
|
|
if (true) {
|
|
print(123, terminator: "")
|
|
print(UnicodeScalar(65), terminator: "")
|
|
print(UnicodeScalar(66), terminator: "")
|
|
print(UnicodeScalar(67), terminator: "")
|
|
print(UnicodeScalar(0o104), terminator: "")
|
|
print(UnicodeScalar(10), terminator: "")
|
|
print("Hello \u{2603}\n", terminator: "") // Hi Snowman!
|
|
print("Hello ☃\n", terminator: "")
|
|
}
|