- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathcrash-in-user-code.swift
23 lines (19 loc) · 655 Bytes
/
crash-in-user-code.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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"
letx:Int?=nil
x!