mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This converts the instances of the pattern for which we have a proper substitution in lit. This will make it easier to replace it appropriately with Windows equivalents.
10 lines
411 B
Swift
10 lines
411 B
Swift
// RUN: %empty-directory(%t)
|
|
//
|
|
// RUN: echo "public var dummyVar = Int()" | %target-swift-frontend -module-name DummyModule -emit-module -o %t -
|
|
// RUN: %target-swift-frontend -typecheck -verify -I %t %s
|
|
|
|
#if canImport(DummyModule)
|
|
print(DummyModule.dummyVar) // expected-error {{use of unresolved identifier 'DummyModule'}}
|
|
print(dummyVar) // expected-error {{use of unresolved identifier 'dummyVar'}}
|
|
#endif
|