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 d98aeaf commit 4579331Copy full SHA for 4579331
test/Runtime/crash_without_backtrace_optimized.swift
@@ -23,8 +23,21 @@
23
24
import Swift
25
26
+#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
27
+ import Darwin
28
+#elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
29
+ import Glibc
30
+#elseif os(Windows)
31
+ import MSVCRT
32
+#else
33
+#error("Unsupported platform")
34
+#endif
35
+
36
func foo() -> Int {
37
return UnsafePointer<Int>(bitPattern: 0)!.pointee
38
}
39
40
+// Give FileCheck something to look at to keep it happy. It fails on
41
+// empty output even if the only directive is a CHECK-NOT.
42
+fputs("Running test.\n", stderr)
43
foo()
0 commit comments