Files
swift-mirror/test/embedded/fno-builtin.swift
2024-01-13 21:35:36 +01:00

16 lines
528 B
Swift

// RUN: %target-swift-emit-ir %s -parse-as-library -module-name main -Xcc -fno-builtin -enable-experimental-feature Embedded | %FileCheck %s
// RUN: %target-swift-emit-ir %s -parse-as-library -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"()