mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I had to XFAIL test/ClangModules/cf.swift, which is failing for reasons I can't understand. <rdar://problem/16911496> Swift SVN r18071
21 lines
608 B
Swift
21 lines
608 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
// FIXME: rdar://16168414 big int interpolation isn't working on 32-bit
|
|
// XFAIL: PTRSIZE=32
|
|
|
|
var hello = "Hello"
|
|
var pi = 3
|
|
// CHECK: Hello, world. Pi is approximately 3.
|
|
println("\(hello), world. Pi is approximately \(pi).")
|
|
|
|
// CHECK: Nested "Hello, World!" with Pi = 3!
|
|
var HW = "\(hello), World!";
|
|
println("Nested \"\(HW)\" with Pi = \(pi)!")
|
|
|
|
|
|
// CHECK: value = 1099226349619 hex = 0xFFEEFF0033 oct = 0o17775677600063
|
|
var someval = 0xFFeeFF0033
|
|
println("value = \(someval) hex = 0x\(someval, radix:16, _uppercase : true) oct = 0o\(someval, radix:8)")
|
|
|
|
|