Files
swift-mirror/test/TBD/app-extension.swift
Cyndy Ishida 6a29923c5e [TBDGen] update tbd version
Short overview of new TBD-v4 format changes:

* special section for reexported symbols (which is not seen any
differently to the linker)

* target based slices as opposed to just architecture

more information in: rdar://problem/60586390
2020-04-03 20:38:15 -07:00

17 lines
760 B
Swift

// REQUIRES: OS=macosx
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck %s -application-extension -emit-tbd -emit-tbd-path %t/safe.tbd
// RUN: %target-swift-frontend -typecheck %s -emit-tbd -emit-tbd-path %t/not-safe.tbd
// RUN: %FileCheck %s --check-prefix EXTENSIONSAFE < %t/safe.tbd
// RUN: %FileCheck %s --check-prefix NOTEXTENSIONSAFE < %t/not-safe.tbd
// EXTENSIONSAFE-NOT: not_app_extension_safe
// NOTEXTENSIONSAFE: not_app_extension_safe
// RUN: %target-swift-frontend -target-variant x86_64-apple-ios13.0-macabi -typecheck %s -application-extension -emit-tbd -emit-tbd-path %t/target-variant.tbd
// RUN: %FileCheck %s --check-prefix MACABI < %t/target-variant.tbd
// MACABI: targets: [ {{.*}}macos{{.*}}maccatalyst{{.*}} ]