simple.carbon 962 B

12345678910111213141516171819202122232425262728293031
  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. // AUTOUPDATE
  6. fn F();
  7. fn G() { F(); }
  8. // CHECK:STDOUT: --- simple.carbon
  9. // CHECK:STDOUT:
  10. // CHECK:STDOUT: constants {
  11. // CHECK:STDOUT: %.1: type = tuple_type () [template]
  12. // CHECK:STDOUT: }
  13. // CHECK:STDOUT:
  14. // CHECK:STDOUT: file {
  15. // CHECK:STDOUT: package: <namespace> = namespace {.F = %F, .G = %G} [template]
  16. // CHECK:STDOUT: %F: <function> = fn_decl @F {} [template]
  17. // CHECK:STDOUT: %G: <function> = fn_decl @G {} [template]
  18. // CHECK:STDOUT: }
  19. // CHECK:STDOUT:
  20. // CHECK:STDOUT: fn @F();
  21. // CHECK:STDOUT:
  22. // CHECK:STDOUT: fn @G() {
  23. // CHECK:STDOUT: !entry:
  24. // CHECK:STDOUT: %F.ref: <function> = name_ref F, file.%F [template = file.%F]
  25. // CHECK:STDOUT: %.loc9: init () = call %F.ref()
  26. // CHECK:STDOUT: return
  27. // CHECK:STDOUT: }
  28. // CHECK:STDOUT: