Add tests for -language-mode flag

This commit is contained in:
James Dempsey
2024-08-19 12:15:15 -07:00
parent 99e3cea979
commit 5fd2eeead5

View File

@@ -12,6 +12,9 @@
// RUN: not %target-swiftc_driver -swift-version 4 -typecheck %s 2>&1 | %FileCheck --check-prefix ERROR_4 %s
// RUN: not %target-swiftc_driver -swift-version 5 -typecheck %s 2>&1 | %FileCheck --check-prefix ERROR_5 %s
// RUN: not %target-swiftc_driver -language-mode 4 -typecheck %s 2>&1 | %FileCheck --check-prefix ERROR_4 %s
// RUN: not %target-swiftc_driver -language-mode 5 -typecheck %s 2>&1 | %FileCheck --check-prefix ERROR_5 %s
// BAD: invalid value
// BAD: note: valid arguments to '-swift-version' are '4', '4.2', '5'