Skip to content

Commit 1773ea0

Browse files
committed
fix test
1 parent 4a72c1e commit 1773ea0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/Macros/SwiftifyImport/MacroErrors/Pointee.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@
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"))
127
func 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"))
1712
func myFunc(_ ptr: OpaquePointer, _ count: CInt) {
1813
}
19-

0 commit comments

Comments
 (0)