Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/swift/Basic/Features.def
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ EXPERIMENTAL_FEATURE(ImportMacroAliases, true)
EXPERIMENTAL_FEATURE(BorrowAndMutateAccessors, false)

/// Allow use of @inline(always) attribute
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(InlineAlways, false)
SUPPRESSIBLE_LANGUAGE_FEATURE(InlineAlways, 496, "@inline(always) attribute")

/// Allow use of 'Swift' (Swift runtime version) in @available attributes
EXPERIMENTAL_FEATURE(SwiftRuntimeAvailability, true)
Expand Down
17 changes: 13 additions & 4 deletions test/ModuleInterface/attr-inline-always.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
// RUN: -enable-experimental-feature InlineAlways \
// RUN: -emit-private-module-interface-path %t.private.swiftinterface

// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs \
// RUN: -enable-experimental-feature InlineAlways
// RUN: %target-swift-typecheck-module-from-interface(%t.private.swiftinterface) -module-name attrs \
// RUN: -enable-experimental-feature InlineAlways
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs

// RUN: %target-swift-typecheck-module-from-interface(%t.private.swiftinterface) -module-name attrs

// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.swiftinterface
// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.private.swiftinterface

// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name attrs \
// RUN: -emit-private-module-interface-path %t.private.swiftinterface

// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs

// RUN: %target-swift-typecheck-module-from-interface(%t.private.swiftinterface) -module-name attrs

// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.swiftinterface
// RUN: %FileCheck %s --check-prefixes CHECK --input-file %t.private.swiftinterface
Expand Down
1 change: 1 addition & 0 deletions test/SILGen/inline_always.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// RUN: %target-swift-emit-silgen -enable-experimental-feature InlineAlways -parse-as-library %s | %FileCheck %s
// RUN: %target-swift-emit-silgen -parse-as-library %s | %FileCheck %s

// REQUIRES: swift_feature_InlineAlways

Expand Down