blob: 6a9ec1f097b54968d251a62ef7f8f54a0c50c10f [file] [log] [blame]
// 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(>=4)
aoeu
#else
htn // expected-error {{use of unresolved identifier}}
#endif