blob: 36884e286e9c9c0fa2ca18b33e26215c2f4db69c [file] [log] [blame]
// RUN: %empty-directory(%t)
// RUN: %swiftc_driver_plain -target %target-triple -module-cache-path %t -typecheck -Xfrontend -verify %s
// This test should be updated to match the expected default Swift version
// when swiftc is invoked directly.
// It should /not/ follow the version specified when invoking lit, which means
// it can't use the %swiftc_driver or %target-build-swift substitutions.
#if swift(>=3)
asdf // expected-error {{use of unresolved identifier}}
#else
jkl
#endif
#if swift(>=3.1)
asdf // expected-error {{use of unresolved identifier}}
#else
jkl
#endif
#if swift(>=4)
aoeu // expected-error {{use of unresolved identifier}}
#else
htn
#endif
#if swift(>=4.1)
aoeu // expected-error {{use of unresolved identifier}}
#else
htn
#endif
#if swift(>=4.2)
aoeu // expected-error {{use of unresolved identifier}}
#else
htn
#endif
#if swift(>=5)
aoeu // expected-error {{use of unresolved identifier}}
#else
htn
#endif
#if swift(>=6)
aoeu
#else
htn // expected-error {{use of unresolved identifier}}
#endif