Files
swift-mirror/test/Frontend/crash-in-user-code.swift
Saleem Abdulrasool 0de6e736ba test: repair Android builds
This test requires execution, which the android CI currently does not support.
Mark the test as executable to fix the CI.
2019-12-02 09:20:35 -08:00

22 lines
547 B
Swift

// RUN: echo %s > %t.filelist.txt
// RUN: not --crash %target-swift-frontend -interpret -filelist %t.filelist.txt 2>&1 | %FileCheck %s
// 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: 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!