params_two.carbon 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. fn Foo(a: i32, b: i32) {}
  7. // CHECK:STDOUT: --- params_two.carbon
  8. // CHECK:STDOUT:
  9. // CHECK:STDOUT: constants {
  10. // CHECK:STDOUT: %Foo: type = fn_type @Foo [template]
  11. // CHECK:STDOUT: %.1: type = tuple_type () [template]
  12. // CHECK:STDOUT: %struct: Foo = struct_value () [template]
  13. // CHECK:STDOUT: }
  14. // CHECK:STDOUT:
  15. // CHECK:STDOUT: file {
  16. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  17. // CHECK:STDOUT: .Core = %Core
  18. // CHECK:STDOUT: .Foo = %Foo.decl
  19. // CHECK:STDOUT: }
  20. // CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
  21. // CHECK:STDOUT: %Foo.decl: Foo = fn_decl @Foo [template = constants.%struct] {
  22. // CHECK:STDOUT: %a.loc7_8.1: i32 = param a
  23. // CHECK:STDOUT: @Foo.%a: i32 = bind_name a, %a.loc7_8.1
  24. // CHECK:STDOUT: %b.loc7_16.1: i32 = param b
  25. // CHECK:STDOUT: @Foo.%b: i32 = bind_name b, %b.loc7_16.1
  26. // CHECK:STDOUT: }
  27. // CHECK:STDOUT: }
  28. // CHECK:STDOUT:
  29. // CHECK:STDOUT: fn @Foo(%a: i32, %b: i32) {
  30. // CHECK:STDOUT: !entry:
  31. // CHECK:STDOUT: return
  32. // CHECK:STDOUT: }
  33. // CHECK:STDOUT: