string2.carbon 333 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. fn CompareStr(s: String) -> i32 {
  5. if (s == "str\n") {
  6. return 0;
  7. }
  8. return 1;
  9. }
  10. fn main() -> i32 {
  11. return CompareStr("str\n");
  12. }