mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Use -verify-emitted-module-interface in test case the emits a swiftinterface containing a back-deployed decl. Also leave a FIXME to stop using -merge-modules in the future and fix a diagnostic typo.
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
|
||||
// Ensure @_backDeploy attributes and function bodies are printed in
|
||||
// swiftinterface files.
|
||||
// RUN: %target-swift-frontend -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/Test.swiftinterface -module-name Test %s
|
||||
// RUN: %swiftc_driver -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/Test.swiftinterface -enable-library-evolution -verify-emitted-module-interface -module-name Test %s
|
||||
// RUN: %FileCheck %s --check-prefix FROMSOURCE --check-prefix CHECK < %t/Test.swiftinterface
|
||||
|
||||
// FIXME(backDeploy): Remove this step in favor of a test that exercises using
|
||||
// a back deployed API from a test library so that we can avoid -merge-modules
|
||||
|
||||
// Ensure @_backDeploy attributes and function bodies are present after
|
||||
// deserializing .swiftmodule files.
|
||||
// RUN: %target-swift-frontend -emit-module -o /dev/null -merge-modules %t/Test.swiftmodule -disable-objc-attr-requires-foundation-module -emit-module-interface-path %t/TestFromModule.swiftinterface -module-name Test
|
||||
|
||||
Reference in New Issue
Block a user