nested_tuple.carbon 919 B

12345678910111213141516171819202122232425
  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 Run() -> i32 {
  7. ((i32,), );
  8. return 0;
  9. }
  10. // CHECK:STDOUT: ; ModuleID = 'nested_tuple.carbon'
  11. // CHECK:STDOUT: source_filename = "nested_tuple.carbon"
  12. // CHECK:STDOUT:
  13. // CHECK:STDOUT: %type = type {}
  14. // CHECK:STDOUT:
  15. // CHECK:STDOUT: define i32 @Run() {
  16. // CHECK:STDOUT: %tuple = alloca { %type }, align 8
  17. // CHECK:STDOUT: %1 = getelementptr inbounds { %type }, ptr %tuple, i32 0, i32 0
  18. // CHECK:STDOUT: store %type zeroinitializer, ptr %1, align 1
  19. // CHECK:STDOUT: %tuple1 = alloca { { %type } }, align 8
  20. // CHECK:STDOUT: %2 = getelementptr inbounds { { %type } }, ptr %tuple1, i32 0, i32 0
  21. // CHECK:STDOUT: store ptr %tuple, ptr %2, align 8
  22. // CHECK:STDOUT: ret i32 0
  23. // CHECK:STDOUT: }