Files
swift-mirror/test/TBD/emit-tbd-from-driver.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

15 lines
620 B
Swift

// REQUIRES: VENDOR=apple
// REQUIRES: OS=macosx
// UNSUPPORTED: CPU=i386
// RUN: %empty-directory(%t)
// RUN: echo "public func foo() -> some CustomStringConvertible { 32 }" > %t/source1.swift
// RUN: echo "" > %t/source2.swift
// RUN: %target-build-swift -target %target-cpu-apple-macosx10.15 -module-name multifile %t/source1.swift %t/source2.swift -Xfrontend -validate-tbd-against-ir=all -emit-tbd -emit-tbd-path %t/multifile.tbd -Xfrontend -tbd-install_name -Xfrontend multifile -enable-library-evolution -emit-module
// RUN: %validate-json %t/multifile.tbd | %FileCheck %s
// CHECK: s9multifile3fooQryFQOMQ