mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
273 B
Swift
11 lines
273 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
let value: CUnsignedInt = 0xFF00FF00
|
|
// CHECK: {{^}}ff00ff00 ff00ff{{$}}
|
|
print("\(String(value, radix: 16)) \(String(NSSwapInt(value), radix: 16))")
|