Skip to content

Commit 56b38b9

Browse files
[test] Add crash test for Clang function type mismatch.
1 parent a86430b commit 56b38b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: not --crash %target-typecheck-verify-swift -sdk %clang-importer-sdk -experimental-print-full-convention -use-clang-function-types
2+
3+
import ctypes
4+
5+
let _error : (@convention(c, cType: "(void *) (*)(void *)") (Int) -> Int)? = getFunctionPointer_()

0 commit comments

Comments
 (0)