Files
swift-mirror/test/Misc/serialized-diagnostics-interpret-mode.swift
Ding Ye ba2157bbee [Driver] Accept -serialize-diagnostics-path for the interpret mode. (#22113)
This patch allows `-serialize-diagnostics-path` for the interpret mode.
There is one file compiled in such mode, so it makes sense to support
this flag to specify an explicit output path for diagnostics emission.

Resolves: SR-9670
2019-01-25 17:20:32 -08:00

15 lines
617 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_intepret_mode.dia %s
// RUN: not %swift_driver -serialize-diagnostics-path=%t_EQ_intepret_mode.dia %s
// RUN: diff %t.dia %t_EQ.dia
// RUN: diff %t.dia %t_intepret_mode.dia
// RUN: diff %t.dia %t_EQ_intepret_mode.dia
var x = 1 x = 2 // expected-error {{consecutive statements on a line must be separated by ';'}} {{10-10=;}}