verbose.carbon 1.1 KB

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: -v compile --no-prelude-import --phase=check %s
  6. //
  7. // Only checks a couple statements in order to minimize manual update churn.
  8. // To test this file alone, run:
  9. // bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/basics/no_prelude/verbose.carbon
  10. // To dump output, run:
  11. // bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/basics/no_prelude/verbose.carbon
  12. // NOAUTOUPDATE
  13. // SET-CHECK-SUBSET
  14. // CHECK:STDERR: Node Push 0: FunctionIntroducer -> <none>
  15. // CHECK:STDERR: AddPlaceholderInst: {kind: FunctionDecl, arg0: function<none>, arg1: inst_block_empty}
  16. // CHECK:STDERR: ReplaceInst: inst{{[0-9]+}} -> {kind: FunctionDecl, arg0: function{{[0-9]+}}, arg1: inst_block_empty, type: type(inst{{[0-9]+}})}
  17. // CHECK:STDERR: inst_block_stack_ Push 1
  18. // CHECK:STDERR: AddInst: {kind: Return}
  19. // CHECK:STDERR: inst_block_stack_ Pop 1: inst_block{{[0-9]+}}
  20. fn Foo() {
  21. return;
  22. }