Files
swift-mirror/test/Serialization/default_silfunction_deserializationfrom_stdlib.swift
Jordan Rose b6818046a8 Eliminate optimization levels 0-3 in favor of -Onone/-O/-Ofast.
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
2014-07-24 01:12:59 +00:00

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]
}