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.
1 parent b62eafd commit cecd4c0Copy full SHA for cecd4c0
test/stdlib/CRT.swift
test/stdlib/CRTWinAPIs.swift
@@ -0,0 +1,12 @@
1
+// RUN: %target-typecheck-verify-swift
2
+// REQUIRES: OS=windows-msvc
3
+
4
+// This file has CRT-specific C stdlib tests, that use
5
+// some APIs present only in CRT.
6
7
+import CRT
8
9
+func complexFunctionsAvailableInSwift() {
10
+ let complexValue = _Cbuild(1.0, 2.0) // Construct a complex double using MSVC-specific API.
11
+ let _ = creal(complexValue)
12
+}
0 commit comments