mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
For now, until we figure out the right way to present -experimental-skip-non-inlinable-function-bodies, make -tbd-is-installapi imply that, for testing.
19 lines
725 B
Swift
19 lines
725 B
Swift
// REQUIRES: VENDOR=apple
|
|
// RUN: %empty-directory(%t)
|
|
|
|
// 1. Emit two TBDs, one with -tbd-is-installapi set, and one without
|
|
|
|
// RUN: %target-swift-frontend -typecheck %s -tbd-is-installapi -emit-tbd -emit-tbd-path %t/flag-provided.tbd
|
|
// RUN: %target-swift-frontend -typecheck %s -emit-tbd -emit-tbd-path %t/flag-omitted.tbd
|
|
|
|
// 2. Ensure that the file with -tbd-is-installapi passed includes the installapi flag
|
|
|
|
// RUN: %FileCheck %s --check-prefix FLAG-PROVIDED < %t/flag-provided.tbd
|
|
|
|
// 3. Ensure that the file without -tbd-is-installapi passed does not include the installapi flag
|
|
|
|
// RUN: %FileCheck %s --check-prefix FLAG-OMITTED < %t/flag-omitted.tbd
|
|
|
|
// FLAG-PROVIDED: installapi
|
|
// FLAG-OMITTED-NOT: installapi
|