basic.carbon 890 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. // RUN: %{carbon-run-parser}
  7. // CHECK:STDOUT: [
  8. // CHECK:STDOUT: {node_index: 5, kind: 'FunctionDefinition', text: '}', subtree_size: 6, children: [
  9. // CHECK:STDOUT: {node_index: 4, kind: 'FunctionDefinitionStart', text: '{', subtree_size: 5, children: [
  10. // CHECK:STDOUT: {node_index: 0, kind: 'FunctionIntroducer', text: 'fn'},
  11. // CHECK:STDOUT: {node_index: 1, kind: 'DeclaredName', text: 'F'},
  12. // CHECK:STDOUT: {node_index: 3, kind: 'ParameterList', text: '(', subtree_size: 2, children: [
  13. // CHECK:STDOUT: {node_index: 2, kind: 'ParameterListEnd', text: ')'}]}]}]},
  14. // CHECK:STDOUT: {node_index: 6, kind: 'FileEnd', text: ''},
  15. // CHECK:STDOUT: ]
  16. fn F() {
  17. }