mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Frontend] Switch -interface-compiler-version to Version
`SWIFT_COMPILER_VERSION` has more than 4 components and it's easier to use `Version` API over `VersionTuple` as well.
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
|
||||
// Test some invalid uses
|
||||
// RUN: not %target-swift-frontend -typecheck %s -interface-compiler-version A 2>&1 | %FileCheck %s --check-prefix=INVALID
|
||||
// RUN: not %target-swift-frontend -typecheck %s -interface-compiler-version 6.0.0.0.1.6 2>&1 | %FileCheck %s --check-prefix=INVALID
|
||||
// RUN: not %target-swift-frontend -typecheck %s -interface-compiler-version 6.xx 2>&1 | %FileCheck %s --check-prefix=INVALID
|
||||
|
||||
// INVALID: <unknown>:0: error: invalid value '{{.*}}' in '-interface-compiler-version {{.*}}'
|
||||
|
||||
// RUN: %target-typecheck-verify-swift %s -interface-compiler-version 6
|
||||
// RUN: %target-typecheck-verify-swift %s -interface-compiler-version 6.1
|
||||
// RUN: %target-typecheck-verify-swift %s -interface-compiler-version 6.1.0.0
|
||||
// RUN: %target-typecheck-verify-swift %s -interface-compiler-version 6.1.0.0.0
|
||||
|
||||
/// Build the libraries.
|
||||
// RUN: %target-swift-frontend %s \
|
||||
// RUN: -module-name Lib \
|
||||
|
||||
Reference in New Issue
Block a user