mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
382 B
Swift
10 lines
382 B
Swift
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-cxx-interop | %FileCheck %s
|
|
|
|
import ConstructorCallsMethod
|
|
|
|
public func getIncrementorValue() -> CInt {
|
|
return callConstructor(41)
|
|
}
|
|
|
|
// CHECK: define linkonce_odr{{( dso_local)?}} i32 @{{_ZN11Incrementor9incrementEi|"\?increment@Incrementor@@QEAAHH@Z"}}(%struct.Incrementor* nonnull align 1 dereferenceable(1) %this, i32 %t)
|