File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
test/Macros/SwiftifyImport/MacroErrors Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 22
33// RUN: %target-typecheck-verify-swift -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
44
5- // expected-error@+2{{SizedBy only supported for raw pointers}}
6- @_SwiftifyImport ( . sizedBy( pointer: . param( 1 ) , size: " size " ) )
7- func myFunc( _ ptr: UnsafePointer < Int > , _ size: CInt ) {
8- }
9-
10- // expected-error@+2{{raw pointers only supported for SizedBy}}
5+ // expected-error@+2{{void pointers not supported for countedBy}}
116@_SwiftifyImport ( . countedBy( pointer: . param( 1 ) , count: " count " ) )
127func myFunc( _ ptr: UnsafeRawPointer , _ count: CInt ) {
138}
149
15- // expected-error@+2{{raw pointers only supported for SizedBy }}
10+ // expected-error@+2{{void pointers not supported for countedBy }}
1611@_SwiftifyImport ( . countedBy( pointer: . param( 1 ) , count: " count " ) )
1712func myFunc( _ ptr: OpaquePointer , _ count: CInt ) {
1813}
19-
You can’t perform that action at this time.
0 commit comments