Skip to content

Commit cecd4c0

Browse files
committed
Fixup the CRT api test
1 parent b62eafd commit cecd4c0

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

test/stdlib/CRT.swift

Lines changed: 0 additions & 17 deletions
This file was deleted.

test/stdlib/CRTWinAPIs.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)