Files
swift-mirror/test/embedded/fno-builtin.swift

16 lines
536 B
Swift

// RUN: %target-swift-emit-ir %s %S/Inputs/print.swift -module-name main -Xcc -fno-builtin -enable-experimental-feature Embedded | %FileCheck %s
// RUN: %target-swift-emit-ir %s %S/Inputs/print.swift -module-name main -Xcc -ffreestanding -enable-experimental-feature Embedded | %FileCheck %s
// REQUIRES: swift_in_compiler
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
public func foo() -> [Int] {
var a = [1, 2, 3]
a.append(4)
let b = a.sorted()
return b
}
// CHECK: define {{.*}}@"$s4main3fooSaySiGyF"()