From 5215093b8768fc0bf7af72f80ba3825c5649699f Mon Sep 17 00:00:00 2001 From: jonmeow Date: Wed, 13 Nov 2024 08:59:35 -0800 Subject: [PATCH] 0 --- toolchain/parse/testdata/operators/unary.carbon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolchain/parse/testdata/operators/unary.carbon b/toolchain/parse/testdata/operators/unary.carbon index cfe7c3b000293..cf6ba2a384c62 100644 --- a/toolchain/parse/testdata/operators/unary.carbon +++ b/toolchain/parse/testdata/operators/unary.carbon @@ -12,9 +12,9 @@ fn F() { // CHECK:STDERR: fail_space_before.carbon:[[@LINE+3]]:16: error: whitespace is required before this unary operator [UnaryOperatorRequiresWhitespace] - // CHECK:STDERR: if (false) {}--n; + // CHECK:STDERR: if (false) {}--0; // CHECK:STDERR: ^~ - if (false) {}--n; + if (false) {}--0; } // --- todo_fail_space_before_op_with_keyword.carbon @@ -37,7 +37,7 @@ fn F() { // CHECK:STDOUT: {kind: 'CodeBlockStart', text: '{'}, // CHECK:STDOUT: {kind: 'CodeBlock', text: '}', subtree_size: 2}, // CHECK:STDOUT: {kind: 'IfStatement', text: 'if', subtree_size: 6}, -// CHECK:STDOUT: {kind: 'IdentifierNameExpr', text: 'n'}, +// CHECK:STDOUT: {kind: 'IntLiteral', text: '0'}, // CHECK:STDOUT: {kind: 'PrefixOperatorMinusMinus', text: '--', subtree_size: 2}, // CHECK:STDOUT: {kind: 'ExprStatement', text: ';', subtree_size: 3}, // CHECK:STDOUT: {kind: 'FunctionDefinition', text: '}', subtree_size: 15},