File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift %s -o %t/out
3
- // RUN: %{python} %S/../Inputs/not.py "%target-run %t/out" 2>&1 | %FileCheck %s
3
+ // RUN: %{python} %S/../Inputs/not.py "%target-run %t/out" 2>&1 | %FileCheck --allow-empty %s
4
4
5
5
// NOTE: not.py is used above instead of "not --crash" because %target-run
6
6
// doesn't pass through the crash, and `not` may not be available when running
7
7
// on a remote host.
8
8
9
- // REQUIRES: rdar51076215
10
-
11
9
// UNSUPPORTED: OS=watchos
12
10
// UNSUPPORTED: OS=ios
13
11
// UNSUPPORTED: OS=tvos
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-build-swift -O %s -o %t/out
3
- // RUN: %{python} %S/../Inputs/not.py "%target-run %t/out" 2>&1 | %FileCheck %s
3
+ // RUN: %{python} %S/../Inputs/not.py "%target-run %t/out" 2>&1 | %FileCheck --allow-empty %s
4
4
5
5
// NOTE: not.py is used above instead of "not --crash" because %target-run
6
6
// doesn't pass through the crash, and `not` may not be available when running
23
23
24
24
import Swift
25
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
26
func foo( ) -> Int {
37
27
return UnsafePointer < Int > ( bitPattern: 0 ) !. pointee
38
28
}
39
29
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
30
foo ( )
You can’t perform that action at this time.
0 commit comments