block.carbon 481 B

123456789101112131415161718192021
  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. package ExplorerTest api;
  7. fn Main() -> i32 {
  8. var s: String = '''
  9. A "block" ""string"" literal
  10. with indent.
  11. ''';
  12. if (s == "A \"block\" \"\"string\"\" literal\n with indent.\n") {
  13. return 0;
  14. } else {
  15. return 1;
  16. }
  17. }
  18. // CHECK:STDOUT: result: 0