Files
swift-mirror/test/Serialization/empty.swift
Dmitri Gribenko 984210aa53 tests: replace '// RUN: rm -rf' '// RUN: mkdir' pairs with '%empty-directory(...)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00

13 lines
464 B
Swift

// RUN: %empty-directory(%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