mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This adjusts the standard library test suite to mostly pass on Windows. The remaining failures are due to various cases: - memory corruption (`_swift_stdlib_free` in swiftDemangle) - heap corruption (canGrowUsingRealloc) - withVAList failure (unresolved) - unicode handling on the command line
17 lines
468 B
Swift
17 lines
468 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
|
|
import Darwin
|
|
#elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android)
|
|
import Glibc
|
|
#elseif os(Windows)
|
|
import MSVCRT
|
|
#endif
|
|
|
|
_ = M_PI // expected-warning {{is deprecated}}
|
|
_ = M_PI_2 // expected-warning {{is deprecated}}
|
|
_ = M_PI_4 // expected-warning {{is deprecated}}
|
|
|
|
_ = M_SQRT2 // expected-warning {{is deprecated}}
|
|
_ = M_SQRT1_2 // expected-warning {{is deprecated}}
|