From 5f9ac391be60de9a3311ab809edb6ac1c9134fe7 Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Thu, 1 Dec 2022 11:18:10 -0800 Subject: [PATCH] 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 --- test/ModuleInterface/macros.swift | 2 ++ test/Serialization/macros.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/ModuleInterface/macros.swift b/test/ModuleInterface/macros.swift index 58e8da300e705..d9ed3bd0d379d 100644 --- a/test/ModuleInterface/macros.swift +++ b/test/ModuleInterface/macros.swift @@ -1,3 +1,5 @@ +// REQUIRES: asserts + // RUN: %empty-directory(%t) // RUN: %target-swift-frontend -typecheck -module-name Macros -emit-module-interface-path %t/Macros.swiftinterface -enable-experimental-feature Macros %s diff --git a/test/Serialization/macros.swift b/test/Serialization/macros.swift index cf07693ddcd35..21f7d9dbdb4d5 100644 --- a/test/Serialization/macros.swift +++ b/test/Serialization/macros.swift @@ -1,3 +1,5 @@ +// REQUIRES: asserts + // RUN: %empty-directory(%t) // 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