mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
435 B
Swift
12 lines
435 B
Swift
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-experimental-cxx-interop -module-name=test -disable-availability-checking | %FileCheck %s
|
|
|
|
import MemberLayout
|
|
|
|
// CHECK: %TSo7IntBaseV = type <{ [4 x i8], %Ts5Int32V }>
|
|
|
|
// CHECK-LABEL: define {{.*}}swiftcc i32 @"$s4testAA1ys5Int32VSo7IntBaseV_tF"(ptr %0)
|
|
// CHECK: getelementptr inbounds %TSo7IntBaseV, ptr %0, i32 0, i32 1
|
|
public func test(y: IntBase) -> CInt {
|
|
return y.i
|
|
}
|