[Test] Require asserts for some experimental-feature tests.

For LazyImmediate and TupleConformances.
This commit is contained in:
Nate Chandler
2023-08-24 13:45:18 -07:00
parent 80f4588d0f
commit 4e22193d9e
5 changed files with 15 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
// RUN: %target-swift-frontend -emit-ir -parse-stdlib -primary-file %s -enable-experimental-feature TupleConformances -parse-as-library | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -parse-stdlib -primary-file %s -enable-experimental-feature TupleConformances -parse-as-library | %FileCheck %s
// -enable-experimental-feature requires an asserts build
// REQUIRES: asserts
import Swift import Swift
protocol P { protocol P {

View File

@@ -1,6 +1,9 @@
// REQUIRES: OS=macosx // REQUIRES: OS=macosx
// RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s
// -enable-experimental-feature requires an asserts build
// REQUIRES: asserts
// Tests that parsing of function bodies is deferred // Tests that parsing of function bodies is deferred
// to runtime when the interpreter is invoked using // to runtime when the interpreter is invoked using
// experimental lazy compilation. Syntax errors in // experimental lazy compilation. Syntax errors in

View File

@@ -1,6 +1,9 @@
// REQUIRES: OS=macosx // REQUIRES: OS=macosx
// RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s
// -enable-experimental-feature requires an asserts build
// REQUIRES: asserts
// Tests that type checking of function bodies is // Tests that type checking of function bodies is
// deferred to runtime when the interpreter is invoked // deferred to runtime when the interpreter is invoked
// using experimental lazy compilation. Type errors in // using experimental lazy compilation. Type errors in

View File

@@ -1,6 +1,9 @@
// REQUIRES: OS=macosx // REQUIRES: OS=macosx
// RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s
// -enable-experimental-feature requires an asserts build
// REQUIRES: asserts
// Tests that piecewise compilation works with global variables // Tests that piecewise compilation works with global variables
let x = 1 let x = 1

View File

@@ -2,6 +2,9 @@
// REQUIRES: swift_interpreter // REQUIRES: swift_interpreter
// RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s
// -enable-experimental-feature requires an asserts build
// REQUIRES: asserts
// Tests that the linkage of private symbols is // Tests that the linkage of private symbols is
// promoted to hidden external, allowing // promoted to hidden external, allowing
// single-function compilation of non-public symbols. // single-function compilation of non-public symbols.