mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We were already effectively doing this everywhere /except/ when building the standard library (which used -O2), so just use the model we want going forward. Swift SVN r20455
16 lines
1021 B
Swift
16 lines
1021 B
Swift
// FIXME: depends on brittle stdlib implementation details
|
|
// XFAIL: *
|
|
// RUN: %swift %s -emit-sil -O -o - -sil-debug-serialization | FileCheck %s
|
|
|
|
// CHECK-DAG: sil public_external [transparent] @_TFSsoi1pU__FT3lhsGVSs13UnsafeMutablePointerQ__3rhsSi_GS_Q__ : $@thin <T> (UnsafeMutablePointer<T>, Int) -> UnsafeMutablePointer<T> {
|
|
// CHECK-DAG: sil public_external @_TFVSs13UnsafeMutablePointerCU__fMGS_Q__FT5valueBp_GS_Q__ : $@thin <T> (Builtin.RawPointer, @thin UnsafeMutablePointer<T>.Type) -> UnsafeMutablePointer<T> {
|
|
// CHECK-DAG: sil public_external @_TFVSs13UnsafeMutablePointer4nullU__fMGS_Q__FT_GS_Q__ : $@thin <T> (@thin UnsafeMutablePointer<T>.Type) -> UnsafeMutablePointer<T> {
|
|
// CHECK-DAG: sil public_external @_TFSs25_writeLineNumberToConsoleFT4lineSu_T_ : $@thin (UInt) -> () {
|
|
// CHECK-DAG: sil public_external @_TFVSs13UnsafeMutablePointerCU__fMGS_Q__FT_GS_Q__ : $@thin <T> (@thin UnsafeMutablePointer<T>.Type) -> UnsafeMutablePointer<T> {
|
|
|
|
import Swift
|
|
|
|
func f(x : UInt8[]) -> UInt8 {
|
|
return x[0]
|
|
}
|