Skip to content

Commit fa6f6db

Browse files
committed
Require asserts in tests enabling ExtractConstantsFromMembers feature
The feature is experimental and thus tests using it must require asserts, lets they fail if run with a non assert toolchain.
1 parent 34cc258 commit fa6f6db

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)