Files
swift-mirror/test/reproducible-builds/swiftc-emit-bc.swift
2017-06-04 11:08:39 -07:00

11 lines
499 B
Swift

// RUN: %empty-directory(%t)
// NOTE: We need to re-use the output filename ("-o run.bc") between the two
// runs since the LLVM BC file contains the filename specified:
// <UnknownCode16 ... /> record string = 'run.bc'
// RUN: %target-build-swift -O -g -module-name foo -emit-bc %s -o %t/run.bc
// RUN: mv %t/run.bc %t/run-1.bc
// RUN: %target-build-swift -O -g -module-name foo -emit-bc %s -o %t/run.bc
// RUN: mv %t/run.bc %t/run-2.bc
// RUN: cmp %t/run-1.bc %t/run-2.bc
print("foo")