mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
397 B
Plaintext
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
|
|
}
|
|
|