mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This attribute was introduced in 7eca38ce76d5d1915f4ab7e665964062c0b37697 (llvm-project). Match it using a wildcard regex, since it is not relevant to these tests. This is intended to reduce future conflicts with rebranch.
12 lines
441 B
Swift
12 lines
441 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
|
|
}
|