trace.carbon 1.1 KB

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