5ae87d7a9d55141806809261a2ea9fb567e70aae 350 B

1234567891011121314
  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. // CHECK:STDOUT: result: 3
  7. package ExplorerTest;
  8. fn Main() -> i32 {
  9. var t: auto = (1, 2);
  10. var a: [i32; 2] = t;
  11. return a[0] + a[1];
  12. }