We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0081dec + ae57fc9 commit 4ade05aCopy full SHA for 4ade05a
test/ClangImporter/cfuncs_parse.swift
@@ -9,7 +9,12 @@ func test_cfunc1(_ i: Int) {
9
}
10
11
func test_cfunc2(_ i: Int) {
12
+#if os(Windows) && (arch(arm64) || arch(x86_64))
13
+ // LLP64 targets will import `long` as `Int32`
14
+ let f = cfunc2(Int32(i), 17)
15
+#else
16
let f = cfunc2(i, 17)
17
+#endif
18
_ = f as Float
19
cfunc2(b:17, a:i) // expected-error{{extraneous argument labels 'b:a:' in call}}
20
cfunc2(17, i) // expected-error{{cannot convert value of type 'Int' to expected argument type 'Int32'}}
0 commit comments