mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Most tests were using %swift or similar substitutions, which did not include the target triple and SDK. The driver was defaulting to the host OS. Thus, we could not run the tests when the standard library was not built for OS X. Swift SVN r24504
20 lines
793 B
Swift
20 lines
793 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
|
|
// RUN: touch %t/new_module.swiftmodule
|
|
// RUN: %target-swift-frontend %s -parse -I %t -verify -show-diagnostics-after-fatal
|
|
|
|
// RUN: echo -n 'a' > %t/new_module.swiftmodule
|
|
// RUN: %target-swift-frontend %s -parse -I %t -verify -show-diagnostics-after-fatal
|
|
|
|
// RUN: echo -n 'abcd' > %t/new_module.swiftmodule
|
|
// RUN: %target-swift-frontend %s -parse -I %t -verify -show-diagnostics-after-fatal
|
|
|
|
// RUN: echo -n 'abcde' > %t/new_module.swiftmodule
|
|
// RUN: %target-swift-frontend %s -parse -I %t -verify -show-diagnostics-after-fatal
|
|
|
|
import new_module // expected-error{{malformed module file}}
|
|
|
|
// malformed module files produce an empty module to avoid further errors.
|
|
new_module.foo() // expected-error {{module 'new_module' has no member named 'foo'}}
|