empty.carbon 801 B

123456789101112131415161718192021
  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. var x: {} = {};
  7. var y: {} = x;
  8. // CHECK:STDOUT: file "empty.carbon" {
  9. // CHECK:STDOUT: %.loc7_9.1: type = struct_type {}
  10. // CHECK:STDOUT: %.loc7_9.2: {} = struct_literal ()
  11. // CHECK:STDOUT: %x: ref {} = var "x"
  12. // CHECK:STDOUT: %.loc7_14.1: {} = struct_literal ()
  13. // CHECK:STDOUT: %.loc7_14.2: init {} = struct_init %.loc7_14.1, ()
  14. // CHECK:STDOUT: assign %x, %.loc7_14.2
  15. // CHECK:STDOUT: %.loc8: {} = struct_literal ()
  16. // CHECK:STDOUT: %y: ref {} = var "y"
  17. // CHECK:STDOUT: %.loc7_5: init {} = struct_init %x, ()
  18. // CHECK:STDOUT: assign %y, %.loc7_5
  19. // CHECK:STDOUT: }