mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Most tests were using %swift or similar substitutions, which did not include the target triple and SDK. The driver was defaulting to the host OS. Thus, we could not run the tests when the standard library was not built for OS X. Swift SVN r24504
16 lines
1.0 KiB
Swift
16 lines
1.0 KiB
Swift
// FIXME: depends on brittle stdlib implementation details
|
|
// XFAIL: *
|
|
// RUN: %target-swift-frontend %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]
|
|
}
|