nested.carbon 742 B

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. // AUTOUPDATE
  6. // CHECK:STDOUT: ; ModuleID = 'nested.carbon'
  7. // CHECK:STDOUT: source_filename = "nested.carbon"
  8. // CHECK:STDOUT:
  9. // CHECK:STDOUT: %EmptyTupleType = type {}
  10. // CHECK:STDOUT:
  11. // CHECK:STDOUT: define %EmptyTupleType @Wiz() {
  12. // CHECK:STDOUT: ret void
  13. // CHECK:STDOUT: }
  14. // CHECK:STDOUT:
  15. // CHECK:STDOUT: define %EmptyTupleType @Baz() {
  16. // CHECK:STDOUT: %Wiz = call %EmptyTupleType @Wiz()
  17. // CHECK:STDOUT: ret void
  18. // CHECK:STDOUT: }
  19. namespace Foo;
  20. namespace Foo.Bar;
  21. fn Foo.Bar.Wiz() {
  22. }
  23. fn Foo.Bar.Baz() {
  24. Foo.Bar.Wiz();
  25. }