mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For now we don't get a diagnostic, but at least there is a will-compile containing the arguments.
16 lines
727 B
Swift
16 lines
727 B
Swift
// RUN: not %sourcekitd-test -req=track-compiles == -req=complete %s -offset=0 -- %s -no-such-arg | %FileCheck %s -check-prefix=ARG_PARSE_1
|
|
// ARG_PARSE_1: {
|
|
// ARG_PARSE_1: key.notification: source.notification.compile-will-start
|
|
// ARG_PARSE_1: key.compileid: [[CID1:".*"]]
|
|
// ARG_PARSE_1: key.compilerargs-string: "{{.*}}.swift -no-such-arg"
|
|
// ARG_PARSE_1: }
|
|
// ARG_PARSE_1: {
|
|
// ARG_PARSE_1: key.notification: source.notification.compile-did-finish
|
|
// ARG_PARSE_1: key.diagnostics: [
|
|
// FIXME: we should pass through the error from parsing the arguments
|
|
// ARG_PARSE_1-NEXT: ]
|
|
// ARG_PARSE_1: key.compileid: [[CID1]]
|
|
// ARG_PARSE_1: }
|
|
// ARG_PARSE_1-NOT: compile-will-start
|
|
// ARG_PARSE_1-NOT: compile-did-finish
|