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 2
2
3
3
// RUN: %target-typecheck-verify-swift -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
4
4
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}}
11
6
@_SwiftifyImport ( . countedBy( pointer: . param( 1 ) , count: " count " ) )
12
7
func myFunc( _ ptr: UnsafeRawPointer , _ count: CInt ) {
13
8
}
14
9
15
- // expected-error@+2{{raw pointers only supported for SizedBy }}
10
+ // expected-error@+2{{void pointers not supported for countedBy }}
16
11
@_SwiftifyImport ( . countedBy( pointer: . param( 1 ) , count: " count " ) )
17
12
func myFunc( _ ptr: OpaquePointer , _ count: CInt ) {
18
13
}
19
-
You can’t perform that action at this time.
0 commit comments