trace.carbon 1.1 KB

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