fail_impl.carbon 1.0 KB

123456789101112131415161718192021222324
  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_impl.carbon:[[@LINE+3]]:1: ERROR: Unrecognized declaration introducer.
  7. // CHECK:STDERR: impl foo bar;
  8. // CHECK:STDERR: ^~~~
  9. impl foo bar;
  10. // CHECK:STDERR: fail_impl.carbon:[[@LINE+3]]:1: ERROR: Unrecognized declaration introducer.
  11. // CHECK:STDERR: impl
  12. // CHECK:STDERR: ^~~~
  13. impl
  14. // CHECK:STDOUT: - filename: fail_impl.carbon
  15. // CHECK:STDOUT: parse_tree: [
  16. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  17. // CHECK:STDOUT: {kind: 'InvalidParseStart', text: 'impl', has_error: yes},
  18. // CHECK:STDOUT: {kind: 'InvalidParseSubtree', text: ';', has_error: yes, subtree_size: 2},
  19. // CHECK:STDOUT: {kind: 'InvalidParseStart', text: 'impl', has_error: yes},
  20. // CHECK:STDOUT: {kind: 'InvalidParseSubtree', text: 'impl', has_error: yes, subtree_size: 2},
  21. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  22. // CHECK:STDOUT: ]