deduced_six.carbon 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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: 'foo'},
  10. // CHECK:STDOUT: {kind: 'DeducedParameterListStart', text: '['},
  11. // CHECK:STDOUT: {kind: 'DeclaredName', text: 'a'},
  12. // CHECK:STDOUT: {kind: 'Literal', text: 'i32'},
  13. // CHECK:STDOUT: {kind: 'PatternBinding', text: ':', subtree_size: 3},
  14. // CHECK:STDOUT: {kind: 'ParameterListComma', text: ','},
  15. // CHECK:STDOUT: {kind: 'DeclaredName', text: 'b'},
  16. // CHECK:STDOUT: {kind: 'Literal', text: 'i32'},
  17. // CHECK:STDOUT: {kind: 'PatternBinding', text: ':', subtree_size: 3},
  18. // CHECK:STDOUT: {kind: 'ParameterListComma', text: ','},
  19. // CHECK:STDOUT: {kind: 'DeclaredName', text: 'c'},
  20. // CHECK:STDOUT: {kind: 'Literal', text: 'i32'},
  21. // CHECK:STDOUT: {kind: 'PatternBinding', text: ':', subtree_size: 3},
  22. // CHECK:STDOUT: {kind: 'ParameterListComma', text: ','},
  23. // CHECK:STDOUT: {kind: 'DeclaredName', text: 'd'},
  24. // CHECK:STDOUT: {kind: 'Literal', text: 'i32'},
  25. // CHECK:STDOUT: {kind: 'PatternBinding', text: ':', subtree_size: 3},
  26. // CHECK:STDOUT: {kind: 'ParameterListComma', text: ','},
  27. // CHECK:STDOUT: {kind: 'DeclaredName', text: 'e'},
  28. // CHECK:STDOUT: {kind: 'Literal', text: 'i32'},
  29. // CHECK:STDOUT: {kind: 'PatternBinding', text: ':', subtree_size: 3},
  30. // CHECK:STDOUT: {kind: 'ParameterListComma', text: ','},
  31. // CHECK:STDOUT: {kind: 'DeclaredName', text: 'f'},
  32. // CHECK:STDOUT: {kind: 'Literal', text: 'i32'},
  33. // CHECK:STDOUT: {kind: 'PatternBinding', text: ':', subtree_size: 3},
  34. // CHECK:STDOUT: {kind: 'DeducedParameterList', text: ']', subtree_size: 25},
  35. // CHECK:STDOUT: {kind: 'ParameterListStart', text: '('},
  36. // CHECK:STDOUT: {kind: 'ParameterList', text: ')', subtree_size: 2},
  37. // CHECK:STDOUT: {kind: 'FunctionDeclaration', text: ';', subtree_size: 30},
  38. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  39. // CHECK:STDOUT: ]
  40. fn foo[a: i32, b: i32, c: i32, d: i32, e: i32, f: i32]();