Files
carbon-lang/executable_semantics/testdata/if_else_if_else.carbon
T
2021-07-28 10:55:14 -07:00

16 lines
323 B
Plaintext

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
fn main() -> Int {
if (0 == 1) {
return 1;
} else if (0 == 2) {
return 2;
} else {
return 0;
}
return 1;
}