mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This test was disabled on Windows through the `MSC_VER` condition. The failure was due to the redirection of the output which does not behave entirely the expected way with the lit shell. Use a temporary file instead and enable the test on Windows.
24 lines
655 B
Swift
24 lines
655 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: echo %s > %t/filelist.txt
|
|
// RUN: not --crash %target-swift-frontend -interpret -filelist %t/filelist.txt 2>&1 >%t/output.txt
|
|
// %FileCheck %s < %t/output.txt
|
|
|
|
// REQUIRES: executable_test
|
|
|
|
// UNSUPPORTED: OS=ios
|
|
// UNSUPPORTED: OS=tvos
|
|
// UNSUPPORTED: OS=watchos
|
|
|
|
// CHECK: Stack dump:
|
|
// CHECK-NEXT: Program arguments:
|
|
// CHECK-NEXT: Swift version
|
|
// CHECK-NEXT: Compiling with effective version
|
|
// CHECK-NEXT: Contents of {{.*}}.filelist.txt:
|
|
// CHECK-NEXT: ---
|
|
// CHECK-NEXT: crash-in-user-code.swift
|
|
// CHECK-NEXT: ---
|
|
// CHECK-NEXT: While running user code "{{.*}}crash-in-user-code.swift"
|
|
|
|
let x: Int? = nil
|
|
x!
|