Skip to content

Commit ef83cff

Browse files
authored
Merge pull request #70101 from NuriAmari/ExtractConstantsFromMembers-test-fixes
Require asserts in tests enabling ExtractConstantsFromMembers feature
2 parents a86c86a + fa6f6db commit ef83cff

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/ConstExtraction/ExtractConstantsFromMembersAttribute.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractConstantsFromMembersAttribute.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s -enable-experimental-feature ExtractConstantsFromMembers
55
// RUN: cat %t/ExtractConstantsFromMembersAttribute.swiftconstvalues 2>&1 | %FileCheck %s
66

7+
// REQUIRES: asserts
8+
79
@extractConstantsFromMembers protocol MyProto {}
810
public struct TestStruct : MyProto {
911
let foo = "foo"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// RUN: %target-typecheck-verify-swift -parse -enable-experimental-feature ExtractConstantsFromMembers
22

3+
// REQUIRES: asserts
4+
35
@extractConstantsFromMembers
46
protocol MyProto {}

0 commit comments

Comments
 (0)