Files
swift-mirror/test/Misc/serialized-diagnostics-interpret-mode.swift
Josh Soref c7e7e67a7b spelling: interpret (#58576)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-05-04 14:16:47 -07:00

15 lines
621 B
Swift

// RUN: rm -f %t.*
// REQUIRES: swift_interpreter
// RUN: %target-swift-frontend -typecheck -serialize-diagnostics-path %t.dia %s -verify
// RUN: %target-swift-frontend -typecheck -serialize-diagnostics-path=%t_EQ.dia %s -verify
// RUN: not %swift_driver -serialize-diagnostics-path %t_interpret_mode.dia %s
// RUN: not %swift_driver -serialize-diagnostics-path=%t_EQ_interpret_mode.dia %s
// RUN: diff %t.dia %t_EQ.dia
// RUN: diff %t.dia %t_interpret_mode.dia
// RUN: diff %t.dia %t_EQ_interpret_mode.dia
var x = 1 x = 2 // expected-error {{consecutive statements on a line must be separated by ';'}} {{10-10=;}}