dump_mem_usage.carbon 864 B

1234567891011121314151617181920212223
  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. // ARGS: --include-diagnostic-kind compile --phase=check --dump-mem-usage %s
  6. //
  7. // To test this file alone, run:
  8. // bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/dump_mem_usage.carbon
  9. // To dump output, run:
  10. // bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/dump_mem_usage.carbon
  11. // NOAUTOUPDATE
  12. //
  13. // Avoid testing specific values:
  14. // SET-CHECK-SUBSET
  15. var x: i32 = 1;
  16. // CHECK:STDOUT: ---
  17. // CHECK:STDOUT: filename: dump_mem_usage.carbon
  18. // CHECK:STDOUT: source_:
  19. // CHECK:STDOUT: used_bytes: 0
  20. // CHECK:STDOUT: reserved_bytes: 0
  21. // CHECK:STDOUT: ...