Skip to content

Commit e356b3e

Browse files
authored
Merge pull request #19162 from slavapestov/close-out-old-bug
Add test case for bug 'fixed' by dropping of Swift 3 compatibility
2 parents 12df78f + 959e71b commit e356b3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/SILGen/default_arguments_generic.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct InitializableImpl: Initializable {
4141
// CHECK-LABEL: sil hidden @$S25default_arguments_generic17testInitializableyyF
4242
func testInitializable() {
4343
// The ".init" is required to trigger the crash that used to happen.
44+
_ = Generic<InitializableImpl>()
4445
_ = Generic<InitializableImpl>.init()
4546
// CHECK: function_ref @$S25default_arguments_generic7GenericVyACyxGxcfcfA_ : $@convention(thin) <τ_0_0 where τ_0_0 : Initializable> () -> @out τ_0_0
4647
// CHECK: [[INIT:%.+]] = function_ref @$S25default_arguments_generic7GenericVyACyxGxcfC

0 commit comments

Comments
 (0)