Files
swift-mirror/test/IRGen/class_resilience_dynamic_replacement.swift
Saleem Abdulrasool f9a14c0277 test: speculative fix after #30965
apple/swift#30965 broke the Windows test suite, this speculatively fixes
it.
2020-04-11 11:28:18 -07:00

12 lines
545 B
Swift

// RUN: %target-swift-frontend -emit-ir -enable-library-evolution %s | %FileCheck %s
public class ResilientClass {
public dynamic func resilientMethod() {}
}
// The dynamic replacement key should be public even though the method
// implementation is hidden.
// CHECK-LABEL: @"$s36class_resilience_dynamic_replacement14ResilientClassC15resilientMethodyyFTx" = {{(dllexport |protected )?}}constant %swift.dyn_repl_key
// CHECK-LABEL: define hidden swiftcc void @"$s36class_resilience_dynamic_replacement14ResilientClassC15resilientMethodyyF"