Files
swift-mirror/test/NameBinding/import-multiple-command-line.swift
Connor Wakamo eb36def696 [frontend] Updated the behavior for -import-module so it can be specified multiple times.
Instead of only honoring the last occurrence of -import-module, the frontend now
honors all occurrences of -import-module, making all of the modules specified on
the command line implicitly visible.

This fixes <rdar://problem/20422696>.

Swift SVN r27299
2015-04-15 00:22:48 +00:00

12 lines
741 B
Swift

// RUN: %target-swift-frontend -parse %s -enable-source-import -I %S/Inputs -sdk "" -verify
// RUN: %target-swift-frontend -parse %s -enable-source-import -I %S/Inputs -sdk "" -import-module abcde -import-module aeiou
// RUN: not %target-swift-frontend -parse %s -enable-source-import -I %S/Inputs -sdk "" -import-module abcde -import-module aeiou -import-module 3333 2>&1 | FileCheck -check-prefix=NON-IDENT %s
// NON-IDENT: error: module name "3333" is not a valid identifier
var c: C? // expected-error {{use of undeclared type 'C'}}
var u: U? // expected-error {{use of undeclared type 'U'}}
var qA1: abcde.A? // expected-error {{use of undeclared type 'abcde'}}
var qA2: aeiou.A? // expected-error {{use of undeclared type 'aeiou'}}