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
9 lines
384 B
Swift
9 lines
384 B
Swift
// RUN: not %target-swift-frontend %s -parse -I %S/Inputs -show-diagnostics-after-fatal 2>&1 | FileCheck %s
|
|
|
|
// CHECK: :[[@LINE+1]]:8: error: module file was created by a newer version of the compiler: {{.*}}too_new.swiftmodule{{$}}
|
|
import too_new
|
|
|
|
// Compiler thinks that the module is empty.
|
|
// CHECK: :[[@LINE+1]]:1: error: module 'too_new' has no member named 'foo'
|
|
too_new.foo()
|