trace.carbon 1.1 KB

123456789101112131415161718192021222324252627
  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. // A lot of output is elided: this is only checking for a few things for simple
  6. // sanity checking on --parser_debug --trace_file=- output.
  7. //
  8. // NOAUTOUPDATE
  9. // RUN: %{explorer-run-trace}
  10. // CHECK:STDOUT: ********** source program **********
  11. // CHECK:STDOUT: interface ImplicitAs {
  12. // CHECK:STDOUT: ********** type checking **********
  13. // CHECK:STDOUT: ** declaring interface ImplicitAs
  14. // CHECK:STDOUT: ********** resolving unformed variables **********
  15. // CHECK:STDOUT: ********** printing declarations **********
  16. // CHECK:STDOUT: interface ImplicitAs {
  17. // CHECK:STDOUT: ********** starting execution **********
  18. // CHECK:STDOUT: ********** initializing globals **********
  19. // CHECK:STDOUT: ********** calling main function **********
  20. // CHECK:STDOUT: --- step exp Main() .0. (<Main()>:0) --->
  21. // CHECK:STDOUT: result: 0
  22. package ExplorerTest api;
  23. fn Main() -> i32 {
  24. return 0;
  25. }