Files
swift-mirror/test/SILGen/unsafe_pointer_gen.swift
Erik Eckstein 39bb14b094 change mangling prefix from $S to $s
This is the final ABI mangling prefix

rdar://problem/38471478
2018-09-19 13:55:11 -07:00

9 lines
334 B
Swift

// RUN: %target-swift-emit-sil -O -parse-as-library %s | %FileCheck %s
// Test the absence of a 'strict' flag.
// CHECK-LABEL: $s18unsafe_pointer_gen13test_raw_load2rpSiSV_tF
// CHECK: pointer_to_address {{%.*}} : $Builtin.RawPointer to $*Int
public func test_raw_load(rp: UnsafeRawPointer) -> Int {
return rp.load(as: Int.self)
}