mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
3b04d1b013
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
14 lines
468 B
Swift
14 lines
468 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %target-swift-frontend -emit-module -parse-stdlib -o %t %s
|
|
// RUN: llvm-bcanalyzer -dump %t/empty.swiftmodule > %t/empty.dump.txt
|
|
// RUN: FileCheck %s < %t/empty.dump.txt
|
|
// RUN: FileCheck -check-prefix=NEGATIVE %s < %t/empty.dump.txt
|
|
|
|
// CHECK: <MODULE_BLOCK {{.*}}>
|
|
// CHECK: <MODULE_NAME abbrevid={{[0-9]+}}/> blob data = 'empty'
|
|
// CHECK: </MODULE_BLOCK>
|
|
// CHECK-NOT: <MODULE_BLOCK {{.*}}>
|
|
|
|
// NEGATIVE-NOT: UnknownCode
|