Skip to content

Commit f537078

Browse files
committed
---
yaml --- r: 322555 b: refs/heads/tensorflow-next c: eb239c7 h: refs/heads/master i: 322553: c0b4b0a 322551: 270ad14
1 parent 60073a2 commit f537078

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,4 +1461,4 @@ refs/heads/master-rebranch: 86e95c23aa0d37f24ec138b7853146c1cead2e40
14611461
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14621462
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14631463
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
1464-
refs/heads/tensorflow-next: b9b809c14e0e51f0044dc462823551c9039bb0f7
1464+
refs/heads/tensorflow-next: eb239c77eff7c0f690491ee87d403186474f0c8f

branches/tensorflow-next/test/ClangImporter/ctypes_parse.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,10 @@ func testFunctionPointers() {
208208
var anotherFP: @convention(c) (CInt, CLong, UnsafeMutableRawPointer?) -> Void
209209
= getFunctionPointer2()
210210

211+
var sizedFP: (@convention(c) (CInt, CInt, UnsafeMutableRawPointer?) -> Void)?
212+
211213
useFunctionPointer2(anotherFP)
212-
anotherFP = fp // expected-error {{cannot assign value of type 'fptr?' (aka 'Optional<@convention(c) (Int32) -> Int32>') to type '@convention(c) (CInt, CLong, UnsafeMutableRawPointer?) -> Void' (aka '@convention(c) (Int32, Int, Optional<UnsafeMutableRawPointer>) -> ()')}}
214+
sizedFP = fp // expected-error {{cannot assign value of type 'fptr?' (aka 'Optional<@convention(c) (Int32) -> Int32>') to type '(@convention(c) (CInt, CInt, UnsafeMutableRawPointer?) -> Void)?'}}
213215
}
214216

215217
func testStructDefaultInit() {

0 commit comments

Comments
 (0)