mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 13:31:06 +01:00
Support printing the diagnostic kind for verification. (#4425)
This is to help identify which diagnostics we're actually using. Note that driver/testdata still has tests which don't pass this flag, and so continue to test the kind-less (default) behavior.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/parse/testdata/if_expr/fail_else_expr_missing.carbon
|
||||
|
||||
fn F() {
|
||||
// CHECK:STDERR: fail_else_expr_missing.carbon:[[@LINE+3]]:35: error: expected expression
|
||||
// CHECK:STDERR: fail_else_expr_missing.carbon:[[@LINE+3]]:35: error(ExpectedExpr): expected expression
|
||||
// CHECK:STDERR: var n: i32 = if true then 1 else;
|
||||
// CHECK:STDERR: ^
|
||||
var n: i32 = if true then 1 else;
|
||||
|
||||
Reference in New Issue
Block a user