Files
swift-mirror/test/SourceKit/Diagnostics/cancel_diags.swift
Rintaro Ishizaki 406d5434c1 [SourceKit] Alway dump the input for FileCheck in a cancellation test
To get more information when failed.

rdar://116486638
2023-12-06 09:45:24 -08:00

8 lines
262 B
Swift

// RUN: not %sourcekitd-test -req=diags %s -print-raw-response -id=diag -async -- %s == -cancel=diag 2>&1 | %FileCheck --dump-input=always %s
func foo(x: Invalid1, y: Invalid2) {
x / y / x / y / x / y / x / y
}
// CHECK: error response (Request Cancelled)