Skip to content

Commit ed401b4

Browse files
Add reproducibility test for -emit-bc
1 parent b2d71ec commit ed401b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// NOTE: We need to re-use the output filename ("-o run.bc") between the two
3+
// runs since the LLVM BC file contains the filename specified:
4+
// <UnknownCode16 ... /> record string = 'run.bc'
5+
// RUN: %target-build-swift -O -g -module-name foo -emit-bc %s -o %t/run.bc
6+
// RUN: mv %t/run.bc %t/run-1.bc
7+
// RUN: %target-build-swift -O -g -module-name foo -emit-bc %s -o %t/run.bc
8+
// RUN: mv %t/run.bc %t/run-2.bc
9+
// RUN: cmp %t/run-1.bc %t/run-2.bc
10+
print("foo")

0 commit comments

Comments
 (0)