placeholder.carbon 424 B

123456789101112131415161718
  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: 0
  7. package ExplorerTest api;
  8. fn Main() -> i32 {
  9. var t: auto = (1, 2, 3, 4);
  10. match (t) {
  11. case (_: i32, _: auto, x: i32, y: auto) => {
  12. return y - x - 1;
  13. }
  14. }
  15. return 1;
  16. }