Files
swift-mirror/test/IRGen/asmname.sil
2025-10-15 20:44:11 -07:00

14 lines
397 B
Plaintext

// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s -DINT=i%target-ptrsize
import Swift
// CHECK: @v1 = {{(dllexport )?}}{{(protected )?}}global
sil_global [asmname "v1"] @$s4main13renamedGlobalSivp : $Int
// CHECK: define{{( dllexport)?}}{{( protected)?}} swiftcc void @f1()
sil [asmname "f1"] @$s4main15renamedFunctionyyF : $@convention(thin) () -> () {
%0 = tuple ()
return %0
}