mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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
26 lines
828 B
Swift
26 lines
828 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t
|
|
// RUN: mkdir %t/sub
|
|
// RUN: cd %t
|
|
|
|
// RUN: %target-swift-frontend -emit-bc %s
|
|
// RUN: %target-swift-frontend -emit-bc %s -module-name explicit
|
|
// RUN: %target-swift-frontend -emit-bc %s -o %t/sub/
|
|
// RUN: %target-swift-frontend -emit-bc %s -o %t/sub/ -module-name explicit
|
|
// RUN: %target-swift-frontend -emit-bc %s -o %t/explicit.llvmbc
|
|
// RUN: %target-swift-frontend -emit-bc %s -o %t/explicit2.llvmbc -module-name explicit2
|
|
// RUN: echo | %target-swift-frontend -emit-bc - -o %t/sub -module-name stdin
|
|
|
|
// RUN: ls -1 %t | FileCheck %s
|
|
// RUN: ls -1 %t/sub/ | FileCheck %s -check-prefix=SUB
|
|
|
|
// CHECK: explicit.bc
|
|
// CHECK-NEXT: explicit.llvmbc
|
|
// CHECK-NEXT: explicit2.llvmbc
|
|
// CHECK-NEXT: output.bc
|
|
// CHECK-NEXT: sub
|
|
|
|
// SUB: explicit.bc
|
|
// SUB-NEXT: output.bc
|
|
// SUB-NEXT: stdin.bc
|