tuple_param.carbon 840 B

123456789101112131415161718192021222324252627
  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: (), b: (i32,), c: (i32, i32)) {}
  7. fn Main() {
  8. F((), (1,), (2, 3));
  9. }
  10. // CHECK:STDOUT: ; ModuleID = 'tuple_param.carbon'
  11. // CHECK:STDOUT: source_filename = "tuple_param.carbon"
  12. // CHECK:STDOUT:
  13. // CHECK:STDOUT: @const.loc10_4.3 = internal constant { i32, i32 } { i32 2, i32 3 }
  14. // CHECK:STDOUT:
  15. // CHECK:STDOUT: define void @F({ i32 } %b, ptr %c) {
  16. // CHECK:STDOUT: entry:
  17. // CHECK:STDOUT: ret void
  18. // CHECK:STDOUT: }
  19. // CHECK:STDOUT:
  20. // CHECK:STDOUT: define void @Main() {
  21. // CHECK:STDOUT: entry:
  22. // CHECK:STDOUT: call void @F({ i32 } { i32 1 }, ptr @const.loc10_4.3)
  23. // CHECK:STDOUT: ret void
  24. // CHECK:STDOUT: }