Files
swift-mirror/test/reproducible-builds/swiftc-emit-tbd.swift
Cyndy Ishida f869bd7e8a [TBDGen] Write tbd-v5 files by default
* Fixup tests to handle new json based output.
* Use llvm-nm & readtapi to verify tbd file outputs.

resolves: rdar://117604275
2023-11-14 08:06:24 -08:00

7 lines
434 B
Swift

// REQUIRES: VENDOR=apple
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -O -g -module-name foo %s -Xfrontend -tbd-install_name -Xfrontend run -emit-tbd-path %t/run-1.tbd -whole-module-optimization
// RUN: %target-build-swift -O -g -module-name foo %s -Xfrontend -tbd-install_name -Xfrontend run -emit-tbd-path %t/run-2.tbd -whole-module-optimization
// RUN: %llvm-readtapi --compare %t/run-1.tbd %t/run-2.tbd
print("foo")