mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
9 lines
345 B
Swift
9 lines
345 B
Swift
// RUN: %target-swift-frontend -O -emit-sil -parse-as-library %s | %FileCheck %s
|
|
|
|
// Test the absence of a 'strict' flag.
|
|
// CHECK-LABEL: _T018unsafe_pointer_gen13test_raw_loadSiSV2rp_tF
|
|
// CHECK: pointer_to_address {{%.*}} : $Builtin.RawPointer to $*Int
|
|
public func test_raw_load(rp: UnsafeRawPointer) -> Int {
|
|
return rp.load(as: Int.self)
|
|
}
|