Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmeow committed Nov 13, 2024
1 parent b722829 commit 5215093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toolchain/parse/testdata/operators/unary.carbon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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},
Expand Down

0 comments on commit 5215093

Please sign in to comment.