basic.carbon 1.2 KB

1234567891011121314151617181920212223242526272829
  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. choice Ordering {
  7. Less,
  8. Equivalent,
  9. Greater,
  10. Incomparable
  11. }
  12. // CHECK:STDOUT: - filename: basic.carbon
  13. // CHECK:STDOUT: parse_tree: [
  14. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  15. // CHECK:STDOUT: {kind: 'ChoiceIntroducer', text: 'choice'},
  16. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Ordering'},
  17. // CHECK:STDOUT: {kind: 'ChoiceDefinitionStart', text: '{', subtree_size: 3},
  18. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Less'},
  19. // CHECK:STDOUT: {kind: 'ChoiceAlternativeListComma', text: ','},
  20. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Equivalent'},
  21. // CHECK:STDOUT: {kind: 'ChoiceAlternativeListComma', text: ','},
  22. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Greater'},
  23. // CHECK:STDOUT: {kind: 'ChoiceAlternativeListComma', text: ','},
  24. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'Incomparable'},
  25. // CHECK:STDOUT: {kind: 'ChoiceDefinition', text: '}', subtree_size: 11},
  26. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  27. // CHECK:STDOUT: ]