Skip to content

Commit 00bbc35

Browse files
committed
[Tests] InitAccessors/NFC: All init accessor tests require "asserts"
Because the feature is experimental and the flag would not be present in the production compilers.
1 parent cdb6764 commit 00bbc35

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/SILOptimizer/init_accessor_raw_sil_lowering.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 InitAccessors -Xllvm -sil-print-after=definite-init -emit-sil %s -o /dev/null 2>&1 | %FileCheck %s
22

3+
// REQUIRES: asserts
4+
35
struct Test1 {
46
var _a: Int
57
var _b: String

test/decl/var/init_accessors.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 InitAccessors
22

3+
// REQUIRES: asserts
4+
35
func test_empty_init_accessor() {
46
struct Test {
57
var empty: Int {

0 commit comments

Comments
 (0)