Skip to content

Commit 80d88b5

Browse files
committed
Disable a C++ interop test: use-std-span.swift
rdar://147269070 (SILGen generates invalid SIL for Interop/Cxx/stdlib/use-std-span.swift) This test now generates invalid SIL out of SILGen: SIL verification failed: stack dealloc does not match most recent stack alloc: op == state.Stack.back() Verifying instruction: %4 = alloc_stack $std.__1.span<__cxxConst<CInt>, _CUnsignedLong_18446744073709551615> // users: %33, %28, %27 -> dealloc_stack %4 : $*std.__1.span<__cxxConst<CInt>, _CUnsignedLong_18446744073709551615> // id: %33
1 parent d3e1451 commit 80d88b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Interop/Cxx/stdlib/use-std-span.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,10 @@ StdSpanTestSuite.test("Span as arg to generic func") {
659659
accessSpanAsSomeGenericParam(sspan)
660660
}
661661

662+
/*
663+
DISABLED: rdar://147269070
664+
(SILGen generates invalid SIL for Interop/Cxx/stdlib/use-std-span.swift)
665+
662666
StdSpanTestSuite.test("Convert between Swift and C++ span types")
663667
.require(.stdlib_6_2).code {
664668
guard #available(SwiftStdlib 6.2, *) else { return }
@@ -688,5 +692,6 @@ StdSpanTestSuite.test("Convert between Swift and C++ span types")
688692
}
689693
}
690694
}
695+
*/
691696

692697
runAllTests()

0 commit comments

Comments
 (0)