mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
While this will be in the compiler arguments, it's easy to miss when skimming over the pretty stacktrace. Add an explicit message to make it easier to see while looking over crashes.
25 lines
1.4 KiB
Swift
25 lines
1.4 KiB
Swift
// RUN: echo %s > %t.filelist.txt
|
|
// RUN: not --crash %target-swift-frontend -typecheck -debug-crash-after-parse -filelist %t.filelist.txt 2>&1 | %FileCheck %s
|
|
|
|
// Check that we see the contents of the input file list in the crash log.
|
|
// CHECK-NOT: while allowing modules with compiler errors
|
|
// CHECK-LABEL: Stack dump
|
|
// CHECK-NEXT: Program arguments: {{.*swift(-frontend)?(c?)(\.exe)?}}
|
|
// CHECK-NEXT: Swift version
|
|
// CHECK-NEXT: Compiling with effective version
|
|
// CHECK-NEXT: Contents of {{.*}}.filelist.txt:
|
|
// CHECK-NEXT: ---
|
|
// CHECK-NEXT: test{{[\\/]}}Frontend{{[\\/]}}crash.swift{{$}}
|
|
// CHECK-NEXT: ---
|
|
|
|
// RUN: not --crash %target-swift-frontend -typecheck -debug-crash-after-parse -experimental-allow-module-with-compiler-errors %s 2>&1 | %FileCheck -check-prefix CHECK-ALLOW %s
|
|
// CHECK-ALLOW: Program arguments: {{.*}} -experimental-allow-module-with-compiler-errors
|
|
// CHECK-ALLOW: Compiling with effective version {{.*}} while allowing modules with compiler errors
|
|
|
|
// RUN: not --crash %target-swift-frontend -typecheck -debug-crash-after-parse -experimental-allow-module-with-compiler-errors -swift-version 5 %s 2>&1 | %FileCheck -check-prefix CHECK-CURRENT %s
|
|
// CHECK-CURRENT: Program arguments: {{.*}} -experimental-allow-module-with-compiler-errors
|
|
// CHECK-CURRENT: Compiling with the current language version while allowing modules with compiler errors
|
|
|
|
func anchor() {}
|
|
anchor()
|