Skip to content

Commit af60ec7

Browse files
authored
Merge pull request #63873 from adrian-prantl/105836867
Add REQUIRES asserts to test
2 parents fedf86f + 6ce9c3b commit af60ec7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/DebugInfo/variadic-generics-count.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: -enable-experimental-feature VariadicGenerics \
33
// RUN: -parse-as-library -module-name a | %FileCheck %s
44

5+
// Because of -enable-experimental-feature VariadicGenerics
6+
// REQUIRES: asserts
7+
58
public func f1<T...>(ts: repeat each T) {
69
// CHECK: define {{.*}} @"$s1a2f12tsyxxQp_tlF"(%swift.opaque** {{.*}}, i{{32|64}} [[COUNT1_1:.*]], %swift.type** {{.*}})
710
// CHECK-DAG: store i{{32|64}} [[COUNT1_1]], i{{32|64}}* %[[COUNT1_1_A:.*]], align

test/DebugInfo/variadic-generics.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: -enable-experimental-feature VariadicGenerics \
33
// RUN: -parse-as-library -module-name a | %FileCheck %s
44

5+
// Because of -enable-experimental-feature VariadicGenerics
6+
// REQUIRES: asserts
7+
58
public func foo<T...>(args: repeat each T) {
69
// CHECK: define {{.*}} @"$s1a3foo4argsyxxQp_tlF"
710
// CHECK-SAME: %swift.type** %[[TYPE_PACK_ARG:.*]])

0 commit comments

Comments
 (0)