mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Swiftify] Support __sized_by on byte-sized pointee types
(cherry picked from commit 89b09a69e4)
15 lines
789 B
Swift
15 lines
789 B
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=CountedByClang -plugin-path %swift-plugin-dir -I %S/Inputs -source-filename=x -enable-experimental-feature SafeInteropWrappers -Xcc -Wno-nullability-completeness | %FileCheck %s
|
|
|
|
// REQUIRES: swift_feature_SafeInteropWrappers
|
|
|
|
// These functions use __counted_by annotations that are not syntactically valid
|
|
// in Swift, so they should not be Swiftified
|
|
|
|
// CHECK-NOT: @_alwaysEmitIntoClient {{.*}} derefLen
|
|
// CHECK-NOT: @_alwaysEmitIntoClient {{.*}} lNot
|
|
// CHECK-NOT: @_alwaysEmitIntoClient {{.*}} lAnd
|
|
// CHECK-NOT: @_alwaysEmitIntoClient {{.*}} lOr
|
|
// CHECK-NOT: @_alwaysEmitIntoClient {{.*}} floatCastToInt
|
|
// CHECK-NOT: @_alwaysEmitIntoClient {{.*}} pointerCastToInt
|
|
// CHECK-NOT: @_alwaysEmitIntoClient {{.*}} nanAsInt
|