basic.carbon 654 B

12345678910111213141516
  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: {kind: 'FunctionIntroducer', text: 'fn'},
  9. // CHECK:STDOUT: {kind: 'DeclaredName', text: 'F'},
  10. // CHECK:STDOUT: {kind: 'ParameterListEnd', text: ')'},
  11. // CHECK:STDOUT: {kind: 'ParameterList', text: '(', subtree_size: 2},
  12. // CHECK:STDOUT: {kind: 'FunctionDeclaration', text: ';', subtree_size: 5},
  13. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  14. // CHECK:STDOUT: ]
  15. fn F();