Skip to content

Commit 1413d37

Browse files
authored
[test] Mark test as UNSUPPORTED when maccatalyst_support is enabled (#84657)
If one tries to enable maccatalyst_support (which doesn't work correctly, see #77506), this test fails because `Swift.swiftmodule` gets generated with both `-target` and `-target-variant` `swift-module-flags`, which triggers the usage of the `isOSVersionAtLeastOrVariantAtLeast` version of version check, which does not match the test `CHECK` lines. Mark the test as `UNSUPPORTED` when the feature is enabled. Not sure if the test can be rewritten conditionally on a feature being support and checking for different functions in the IR. This should not affect swift.org CI because that CI never enables maccatalyst_support.
1 parent b4fb574 commit 1413d37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/IRGen/temporary_allocation/codegen_very_large_allocation.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
// On iOS _stdlib_isOSVersionAtLeast() is @_transparent, which affects codegen.
1111
// UNSUPPORTED: OS=ios
1212

13+
// When macCatalyst support is enabled, isOSVersionAtLeast transforms into
14+
// isOSVersionAtLeastOrVariantVersionAtLeast
15+
// UNSUPPORTED: maccatalyst_support
16+
1317
@_silgen_name("blackHole")
1418
func blackHole(_ value: UnsafeMutableRawPointer?) -> Void
1519

0 commit comments

Comments
 (0)