tuple_equality.carbon 373 B

123456789101112131415
  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. package ExecutableSemanticsTest api;
  5. fn main() -> i32 {
  6. var t1: (i32,i32) = (5, 2);
  7. var t2: (i32,i32) = (5, 2);
  8. if (t1 == t2) {
  9. return 0;
  10. } else {
  11. return 1;
  12. }
  13. }