basic.carbon 1.0 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. // AUTOUPDATE
  6. // RUN: %{carbon-run-semantics}
  7. // CHECK:STDOUT: cross_reference_irs.size == 2,
  8. // CHECK:STDOUT: cross_references = {
  9. // CHECK:STDOUT: node_xref0 = xref(ir0, block0, node0);
  10. // CHECK:STDOUT: node_xref1 = xref(ir0, block0, node1);
  11. // CHECK:STDOUT: node_xref2 = xref(ir0, block0, node2);
  12. // CHECK:STDOUT: node_xref3 = xref(ir0, block0, node3);
  13. // CHECK:STDOUT: },
  14. // CHECK:STDOUT: identifiers = {
  15. // CHECK:STDOUT: ident0 = "Foo";
  16. // CHECK:STDOUT: },
  17. // CHECK:STDOUT: integer_literals = {
  18. // CHECK:STDOUT: },
  19. // CHECK:STDOUT: node_blocks = {
  20. // CHECK:STDOUT: block0 = {
  21. // CHECK:STDOUT: node0 = FunctionDeclaration();
  22. // CHECK:STDOUT: node1 = BindName(ident0, node0);
  23. // CHECK:STDOUT: node2 = FunctionDefinition(node0, block1);
  24. // CHECK:STDOUT: },
  25. // CHECK:STDOUT: block1 = {
  26. // CHECK:STDOUT: },
  27. // CHECK:STDOUT: }
  28. fn Foo() {}