mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This obviates the need for "-frontend", although we still accept it for backward compatibility. Switch lit's %target-swift-frontend et al over to calling swift-frontend.
16 lines
538 B
Swift
16 lines
538 B
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-LABEL: Stack dump
|
|
// CHECK-NEXT: Program arguments: {{.*swift(-frontend)?(c?)(\.exe)?}}
|
|
// CHECK-NEXT: Swift version
|
|
// CHECK-NEXT: Contents of {{.*}}.filelist.txt:
|
|
// CHECK-NEXT: ---
|
|
// CHECK-NEXT: test{{[\\/]}}Frontend{{[\\/]}}crash.swift{{$}}
|
|
// CHECK-NEXT: ---
|
|
|
|
func anchor() {}
|
|
anchor()
|
|
|