Skip to content

Commit 395bf67

Browse files
committed
Swift: Make the test work on Linux.
1 parent 2d88930 commit 395bf67

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

swift/ql/test/library-tests/elements/type/pointertypes/pointers.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
struct AutoreleasingUnsafeMutablePointer<Pointee> {
3+
}
4+
25
class MyClass {
36
init() {
47
val = 0
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
| pointers.swift:11:6:11:6 | p1 | UnsafePointer<Int> | PointerType, UnsafeTypedPointerType |
2-
| pointers.swift:12:6:12:6 | p2 | UnsafeMutablePointer<UInt8> | PointerType, UnsafeTypedPointerType |
3-
| pointers.swift:13:6:13:6 | p3 | UnsafeBufferPointer<String> | PointerType, UnsafeTypedPointerType |
4-
| pointers.swift:14:6:14:6 | p4 | UnsafeMutableBufferPointer<MyClass> | PointerType, UnsafeTypedPointerType |
5-
| pointers.swift:15:6:15:6 | p5 | UnsafeRawPointer | PointerType, UnsafeRawPointerType |
6-
| pointers.swift:16:6:16:6 | p6 | UnsafeMutableRawPointer | PointerType, UnsafeRawPointerType |
7-
| pointers.swift:17:6:17:6 | p7 | UnsafeRawBufferPointer | PointerType, UnsafeRawPointerType |
8-
| pointers.swift:18:6:18:6 | p8 | UnsafeMutableRawBufferPointer | PointerType, UnsafeRawPointerType |
9-
| pointers.swift:20:6:20:6 | op | OpaquePointer | OpaquePointerType, PointerType |
10-
| pointers.swift:21:6:21:6 | aump | AutoreleasingUnsafeMutablePointer<UInt8> | AutoreleasingUnsafeMutablePointerType, PointerType |
11-
| pointers.swift:22:6:22:6 | um | Unmanaged<MyClass> | PointerType, UnmanagedType |
12-
| pointers.swift:23:6:23:6 | cvlp | CVaListPointer | CVaListPointerType, PointerType |
13-
| pointers.swift:25:6:25:6 | mbp | ManagedBufferPointer<Int, MyClass> | ManagedBufferPointerType, PointerType |
1+
| pointers.swift:2:8:2:8 | self | AutoreleasingUnsafeMutablePointer<Pointee> | AutoreleasingUnsafeMutablePointerType, PointerType |
2+
| pointers.swift:14:6:14:6 | p1 | UnsafePointer<Int> | PointerType, UnsafeTypedPointerType |
3+
| pointers.swift:15:6:15:6 | p2 | UnsafeMutablePointer<UInt8> | PointerType, UnsafeTypedPointerType |
4+
| pointers.swift:16:6:16:6 | p3 | UnsafeBufferPointer<String> | PointerType, UnsafeTypedPointerType |
5+
| pointers.swift:17:6:17:6 | p4 | UnsafeMutableBufferPointer<MyClass> | PointerType, UnsafeTypedPointerType |
6+
| pointers.swift:18:6:18:6 | p5 | UnsafeRawPointer | PointerType, UnsafeRawPointerType |
7+
| pointers.swift:19:6:19:6 | p6 | UnsafeMutableRawPointer | PointerType, UnsafeRawPointerType |
8+
| pointers.swift:20:6:20:6 | p7 | UnsafeRawBufferPointer | PointerType, UnsafeRawPointerType |
9+
| pointers.swift:21:6:21:6 | p8 | UnsafeMutableRawBufferPointer | PointerType, UnsafeRawPointerType |
10+
| pointers.swift:23:6:23:6 | op | OpaquePointer | OpaquePointerType, PointerType |
11+
| pointers.swift:24:6:24:6 | aump | AutoreleasingUnsafeMutablePointer<UInt8> | AutoreleasingUnsafeMutablePointerType, PointerType |
12+
| pointers.swift:25:6:25:6 | um | Unmanaged<MyClass> | PointerType, UnmanagedType |
13+
| pointers.swift:26:6:26:6 | cvlp | CVaListPointer | CVaListPointerType, PointerType |
14+
| pointers.swift:28:6:28:6 | mbp | ManagedBufferPointer<Int, MyClass> | ManagedBufferPointerType, PointerType |

0 commit comments

Comments
 (0)