fail_empty.carbon 922 B

123456789101112131415161718192021
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // AUTOUPDATE
  6. // CHECK:STDERR: fail_empty.carbon:[[@LINE+3]]:4: ERROR: Expected binding pattern.
  7. // CHECK:STDERR: let;
  8. // CHECK:STDERR: ^
  9. let;
  10. // CHECK:STDOUT: - filename: fail_empty.carbon
  11. // CHECK:STDOUT: parse_tree: [
  12. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  13. // CHECK:STDOUT: {kind: 'LetIntroducer', text: 'let'},
  14. // CHECK:STDOUT: {kind: 'IdentifierName', text: ';', has_error: yes},
  15. // CHECK:STDOUT: {kind: 'InvalidParse', text: ';', has_error: yes},
  16. // CHECK:STDOUT: {kind: 'BindingPattern', text: ';', has_error: yes, subtree_size: 3},
  17. // CHECK:STDOUT: {kind: 'LetDecl', text: ';', subtree_size: 5},
  18. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  19. // CHECK:STDOUT: ]