blob: 09b2d3cee08dd2739d400b0e9a657b96b9cdca75 [file] [log] [blame]
// RUN: rm -rf %t && mkdir -p %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")