empty.carbon 717 B

1234567891011121314151617181920
  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: {} = struct_literal ()
  13. // CHECK:STDOUT: assign %x, %.loc7_14
  14. // CHECK:STDOUT: %.loc8: {} = struct_literal ()
  15. // CHECK:STDOUT: %y: ref {} = var "y"
  16. // CHECK:STDOUT: %.loc7_5: {} = bind_value %x
  17. // CHECK:STDOUT: assign %y, %.loc7_5
  18. // CHECK:STDOUT: }