Skip to content

Commit 3803e91

Browse files
authored
Merge pull request #76776 from amritpan/keyPathWithStaticMembers-assert
[Test] Mark additional tests with REQUIRES: asserts for KeyPathWithStaticMembers flag.
2 parents c9b0a2a + 2cb1088 commit 3803e91

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/SILOptimizer/access_wmo_diagnose.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -enable-experimental-feature KeyPathWithStaticMembers -parse-as-library -emit-sil -enforce-exclusivity=checked -primary-file %s -o /dev/null -verify
22

3+
// REQUIRES: asserts
4+
35
// AccessEnforcementWMO assumes that the only way to address a global or static
46
// property is via a formal begin_access. If we ever allow keypaths for static
57
// properties, which I think is conceivable, then this test will fail to produce

test/attr/attr_dynamic_member_lookup.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-typecheck-verify-swift -enable-experimental-feature KeyPathWithStaticMembers
22

3+
// REQUIRES: asserts
4+
35
var global = 42
46

57
@dynamicMemberLookup

test/expr/unary/keypath/keypath.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -typecheck -enable-experimental-feature KeyPathWithStaticMembers -parse-as-library %s -verify
22

3+
// REQUIRES: asserts
4+
35
struct Sub: Hashable {
46
static func ==(_: Sub, _: Sub) -> Bool { return true }
57
func hash(into hasher: inout Hasher) {}

0 commit comments

Comments
 (0)