print_allocs.carbon 397 B

1234567891011121314151617
  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. // NOAUTOUPDATE
  6. package ExplorerTest api;
  7. fn Main() -> i32 {
  8. var a: i32 = 1;
  9. var b: i32 = 2;
  10. heap.PrintAllocs();
  11. return 0;
  12. }
  13. // CHECK:STDOUT: 0: Heap{}, 1: 1, 2: 2
  14. // CHECK:STDOUT: result: 0