Frontend: sanitize version numbers beyond the scope of llvm::VersionTuple

rdar://78160707
This commit is contained in:
Xi Ge
2021-05-18 11:04:02 -07:00
parent de221dd688
commit e17a9d192a
2 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
// RUN: %empty-directory(%t/binary)
// RUN: %empty-directory(%t/module-cache)
// RUN: %target-swift-frontend -emit-module %s -module-name Foo -swift-version 5 -disable-implicit-concurrency-module-import -user-module-version 113.33.44.55 -emit-module-interface-path %t/textual/Foo.swiftinterface -enable-library-evolution -emit-module-path %t/binary/Foo.swiftmodule
// RUN: %target-swift-frontend -emit-module %s -module-name Foo -swift-version 5 -disable-implicit-concurrency-module-import -user-module-version 113.33.44.55.66.77 -emit-module-interface-path %t/textual/Foo.swiftinterface -enable-library-evolution -emit-module-path %t/binary/Foo.swiftmodule
// RUN: %FileCheck %s --check-prefix=INTERFACE-FLAG < %t/textual/Foo.swiftinterface