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.
11 lines
487 B
Swift
11 lines
487 B
Swift
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-experimental-cxx-interop | %FileCheck %s
|
|
|
|
import ConstructorCallsFunctionFromNestedCalls
|
|
|
|
let a = Hold42WithLongInitCallGraph()
|
|
|
|
// CHECK-DAG: define {{.*}}i32 @{{_Z11get42Level1v|"\?get42Level1@@YAHXZ"}}
|
|
// CHECK-DAG: define {{.*}}i32 @{{_Z11get42Level2v|"\?get42Level2@@YAHXZ"}}
|
|
// CHECK-DAG: define {{.*}}i32 @{{_Z11get42Level3v|"\?get42Level3@@YAHXZ"}}
|
|
// CHECK-DAG: define {{.*}}i32 @{{_Z11get42Level4v|"\?get42Level4@@YAHXZ"}}
|