phase_source_program.carbon 800 B

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. package ExplorerTest api;
  5. interface TestInterface {}
  6. fn Main() -> i32 {
  7. return 0;
  8. }
  9. // Place checks after code so that line numbers are stable, reducing merge
  10. // conflicts.
  11. // ARGS: --trace_file=- --trace_phase=source_program %s
  12. // NOAUTOUPDATE
  13. // CHECK:STDOUT: * * * * * * * * * * source program * * * * * * * * * *
  14. // CHECK:STDOUT: --------------------------------------------------------
  15. // CHECK:STDOUT: interface TestInterface {
  16. // CHECK:STDOUT: }
  17. // CHECK:STDOUT:
  18. // CHECK:STDOUT: fn Main () -> i32
  19. // CHECK:STDOUT: {
  20. // CHECK:STDOUT: return 0;
  21. // CHECK:STDOUT: }
  22. // CHECK:STDOUT: result: 0