param_same_name.carbon 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 F(a: i32);
  7. fn G(a: i32);
  8. // CHECK:STDOUT: --- param_same_name.carbon
  9. // CHECK:STDOUT:
  10. // CHECK:STDOUT: file {
  11. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  12. // CHECK:STDOUT: .Core = %Core
  13. // CHECK:STDOUT: .F = %F
  14. // CHECK:STDOUT: .G = %G
  15. // CHECK:STDOUT: }
  16. // CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
  17. // CHECK:STDOUT: %F: <function> = fn_decl @F [template] {
  18. // CHECK:STDOUT: %a.loc7_6.1: i32 = param a
  19. // CHECK:STDOUT: @F.%a: i32 = bind_name a, %a.loc7_6.1
  20. // CHECK:STDOUT: }
  21. // CHECK:STDOUT: %G: <function> = fn_decl @G [template] {
  22. // CHECK:STDOUT: %a.loc9_6.1: i32 = param a
  23. // CHECK:STDOUT: @G.%a: i32 = bind_name a, %a.loc9_6.1
  24. // CHECK:STDOUT: }
  25. // CHECK:STDOUT: }
  26. // CHECK:STDOUT:
  27. // CHECK:STDOUT: fn @F(%a: i32);
  28. // CHECK:STDOUT:
  29. // CHECK:STDOUT: fn @G(%a: i32);
  30. // CHECK:STDOUT: