Files
swift-mirror/test/TBD/main.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

11 lines
677 B
Swift

// REQUIRES: VENDOR=apple
// RUN: %target-swift-frontend -emit-ir -o/dev/null -module-name test -validate-tbd-against-ir=all %s
// RUN: %target-swift-frontend -emit-ir -o/dev/null -module-name test -validate-tbd-against-ir=all %s -O
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -parse-as-library -module-name test %s -tbd-install_name test -emit-tbd -emit-tbd-path %t/typecheck.tbd
// RUN: %target-swift-frontend -emit-ir -parse-as-library -module-name test %s -tbd-install_name test -emit-tbd -emit-tbd-path %t/emit-ir.tbd
// RUN: %llvm-readtapi --compare %t/typecheck.tbd %t/emit-ir.tbd
// Top-level code (i.e. implicit `main`) should be handled