mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Due to a now default-enabled `undef` pass (llvm/llvm-project 1b1c8d83d3567a60280291c0adb95d1d60335509), a whole bunch of interop IRGen tests are failing due to missing `undefs`, even though they don't matter in these tests at all. Add regex matches so that these tests just check for the name and types of the functions they care about.
17 lines
506 B
Swift
17 lines
506 B
Swift
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-experimental-cxx-interop | %FileCheck %s
|
|
|
|
import ConstructorCallsFunction
|
|
|
|
public func getIncrementorValue() -> CInt {
|
|
return callConstructor(41)
|
|
}
|
|
|
|
let a = Hold42()
|
|
let b = Hold23()
|
|
|
|
let sum = a.m + b.m
|
|
|
|
// CHECK-DAG: define {{.*}}i32 @{{_Z9incrementi|"\?increment@@YAHH@Z"}}(i32 {{.*}})
|
|
// CHECK-DAG: define {{.*}}i32 @{{_Z5get42v|"\?get42@@YAHXZ"}}
|
|
// CHECK-DAG: define {{.*}}i32 @{{_Z15passThroughArgTIiET_S0_|"\?\?\$passThroughArgT@H@@YAHH@Z"}}
|