fail_no_intro_without_semi.carbon 781 B

123456789101112131415161718
  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_no_intro_without_semi.carbon:[[@LINE+3]]:1: ERROR: Unrecognized declaration introducer.
  7. // CHECK:STDERR: foo bar baz
  8. // CHECK:STDERR: ^~~
  9. foo bar baz
  10. // CHECK:STDOUT: - filename: fail_no_intro_without_semi.carbon
  11. // CHECK:STDOUT: parse_tree: [
  12. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  13. // CHECK:STDOUT: {kind: 'InvalidParseStart', text: 'foo', has_error: yes},
  14. // CHECK:STDOUT: {kind: 'InvalidParseSubtree', text: 'baz', has_error: yes, subtree_size: 2},
  15. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  16. // CHECK:STDOUT: ]