Merge pull request #84327 from tshortli/really-require-swift-version-in-module-interfaces

Frontend: Require explicit language mode when emitting swiftinterfaces
This commit is contained in:
Allan Shortlidge
2025-09-16 15:57:26 -07:00
committed by GitHub
2 changed files with 4 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
// RUN: %empty-directory(%t)
// RUN: %swift_frontend_plain -target %target-swift-5.1-abi-triple %s \
// RUN: not %swift_frontend_plain -target %target-swift-5.1-abi-triple %s \
// RUN: -enable-library-evolution -module-name Test \
// RUN: -emit-module-interface-path %t.swiftinterface \
// RUN: -emit-module -o /dev/null 2>&1 | %FileCheck %s
// CHECK: <unknown>:0: warning: emitting module interface files requires '-language-mode'
// CHECK: <unknown>:0: error: emitting module interface files requires '-language-mode'
// RUN: %swift_frontend_plain -target %target-swift-5.1-abi-triple %s \
// RUN: -enable-library-evolution -module-name Test \