Requires-asserts macro tests

Macros are an experimental feature, as such are not available on
non-asserts compilers.

Adding requires asserts to remaining experimental macro tests.
 - ModuleInterface/macros.swift
 - Serialization/macros.swift
This commit is contained in:
Evan Wilde
2022-12-01 11:18:10 -08:00
parent 9f542898cd
commit 5f9ac391be
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
// REQUIRES: asserts
// RUN: %empty-directory(%t) // RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -module-name Macros -emit-module-interface-path %t/Macros.swiftinterface -enable-experimental-feature Macros %s // RUN: %target-swift-frontend -typecheck -module-name Macros -emit-module-interface-path %t/Macros.swiftinterface -enable-experimental-feature Macros %s

View File

@@ -1,3 +1,5 @@
// REQUIRES: asserts
// RUN: %empty-directory(%t) // RUN: %empty-directory(%t)
// RUN: %empty-directory(%t-scratch) // RUN: %empty-directory(%t-scratch)
// RUN: %target-swift-frontend -emit-module -o %t/def_macros.swiftmodule %S/Inputs/def_macros.swift -module-name def_macros -enable-experimental-feature Macros // RUN: %target-swift-frontend -emit-module -o %t/def_macros.swiftmodule %S/Inputs/def_macros.swift -module-name def_macros -enable-experimental-feature Macros