Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/Interop/C/struct/noncopyable_structs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ func bad2(_: borrowing BadDestroyNonCopyableType2) { }

#endif

#if CPLUSPLUS
// expected-cplusplus-warning@+1{{'ExtraDestroy' is deprecated: destroy operation 'extraDestroy' is not allowed on types with a non-trivial destructor}}
func extra(_: borrowing ExtraDestroy) { }
#endif

// CHECK-SIL: sil shared @$sSo21NonCopyableWithDeinitVfD : $@convention(method) (@owned NonCopyableWithDeinit) -> () {
// CHECK-SIL: bb0([[SELF:%[0-9]+]] : $NonCopyableWithDeinit):
// CHECK-SIL: [[SELF_ALLOC:%[0-9]+]] = alloc_stack $NonCopyableWithDeinit
Expand Down
11 changes: 0 additions & 11 deletions test/Interop/C/struct/noncopyable_structs_nontrivial.swift

This file was deleted.