Skip to content

Commit a84f96e

Browse files
authored
Merge pull request #62097 from slavapestov/fix-rdar102300174
Disable variadic generics tests on noasserts builds
2 parents 10aa01f + a72ce00 commit a84f96e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

test/ModuleInterface/pack_expansion_type.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: %target-swift-emit-module-interface(%t/PackExpansionType.swiftinterface) %s -module-name PackExpansionType -enable-experimental-feature VariadicGenerics
33
// RUN: %FileCheck %s < %t/PackExpansionType.swiftinterface
44

5+
// Experimental features require an asserts compiler
6+
// REQUIRES: asserts
7+
58
// CHECK: public func variadicFunction<T..., U...>(t: T..., u: U...) -> ((T, U)...) where ((T, U)...) : Any
69
public func variadicFunction<T..., U...>(t: T..., u: U...) -> ((T, U)...) {}
710

test/SILGen/pack_expansion_type.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %target-swift-emit-silgen %s -enable-experimental-feature VariadicGenerics | %FileCheck %s
22

3+
// Experimental features require an asserts compiler
4+
// REQUIRES: asserts
5+
36
// CHECK-LABEL: sil [ossa] @$s19pack_expansion_type16variadicFunction1t1ux_q_txQp_txxQp_q_q_Qptq_Rhzr0_lF : $@convention(thin) <T..., U... where ((T, U)...) : Any> (@in_guaranteed T..., @in_guaranteed U...) -> @out (T, U)... {
47
// CHECK: bb0(%0 : $*(T, U)..., %1 : $*T..., %2 : $*U...):
58
public func variadicFunction<T..., U...>(t: T..., u: U...) -> ((T, U)...) {}

test/Serialization/pack_expansion_type.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend %S/Inputs/pack_expansion_type_other.swift -emit-module -emit-module-path %t/pack_expansion_type_other.swiftmodule -enable-experimental-feature VariadicGenerics
33

4+
// Experimental features require an asserts compiler
5+
// REQUIRES: asserts
6+
47
import pack_expansion_type_other
58

69
variadicFunction(t: 1, 2, u: "hi", "bye")

0 commit comments

Comments
 (0)