fail_missing_definition.carbon 978 B

1234567891011121314151617181920
  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_missing_definition.carbon:[[@LINE+3]]:25: ERROR: Choice definition expected.
  7. // CHECK:STDERR: choice MissingDefinition;
  8. // CHECK:STDERR: ^
  9. choice MissingDefinition;
  10. // CHECK:STDOUT: - filename: fail_missing_definition.carbon
  11. // CHECK:STDOUT: parse_tree: [
  12. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  13. // CHECK:STDOUT: {kind: 'ChoiceIntroducer', text: 'choice'},
  14. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'MissingDefinition'},
  15. // CHECK:STDOUT: {kind: 'ChoiceDefinitionStart', text: ';', has_error: yes, subtree_size: 3},
  16. // CHECK:STDOUT: {kind: 'ChoiceDefinition', text: ';', has_error: yes, subtree_size: 4},
  17. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  18. // CHECK:STDOUT: ]