mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
561 B
Swift
14 lines
561 B
Swift
// REQUIRES: swift_swift_parser
|
|
|
|
// RUN: %target-typecheck-verify-swift -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
|
|
|
|
// expected-error@+2{{void pointers not supported for countedBy}}
|
|
@_SwiftifyImport(.countedBy(pointer: .param(1), count: "count"))
|
|
func myFunc(_ ptr: UnsafeRawPointer, _ count: CInt) {
|
|
}
|
|
|
|
// expected-error@+2{{void pointers not supported for countedBy}}
|
|
@_SwiftifyImport(.countedBy(pointer: .param(1), count: "count"))
|
|
func myFunc(_ ptr: OpaquePointer, _ count: CInt) {
|
|
}
|