mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
While the comment is correct to state that this won't enable any new optimizations with -Onone, it does enable IRGen's lazy function emission, which is important for 'reasync' functions, which we don't want to emit at all even at -Onone. This fixes debug stdlib builds with the new reasync versions of the &&, || and ?? operators.
13 lines
437 B
Swift
13 lines
437 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/def_module_abi_name.swift -module-abi-name Goodbye
|
|
// RUN: %target-swift-frontend -module-name ModuleABIName -emit-sil -I %t %s | %FileCheck %s
|
|
|
|
import def_module_abi_name
|
|
|
|
func callFunction() {
|
|
// CHECK: function_ref @$s7Goodbye8functionyyF
|
|
def_module_abi_name.function()
|
|
}
|
|
|
|
// CHECK: sil @$s7Goodbye8functionyyF : $@convention(thin) () -> ()
|