nested_struct.carbon 477 B

1234567891011121314151617
  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. {.b = {.a: i32}};
  8. return 0;
  9. }
  10. // CHECK:STDOUT: ; ModuleID = 'nested_struct.carbon'
  11. // CHECK:STDOUT: source_filename = "nested_struct.carbon"
  12. // CHECK:STDOUT:
  13. // CHECK:STDOUT: define i32 @main() {
  14. // CHECK:STDOUT: ret i32 0
  15. // CHECK:STDOUT: }