declaration.carbon 874 B

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. interface I {}
  7. impl i32 as I;
  8. // CHECK:STDOUT: --- declaration.carbon
  9. // CHECK:STDOUT:
  10. // CHECK:STDOUT: constants {
  11. // CHECK:STDOUT: %.1: type = interface_type @I [template]
  12. // CHECK:STDOUT: }
  13. // CHECK:STDOUT:
  14. // CHECK:STDOUT: file {
  15. // CHECK:STDOUT: package: <namespace> = namespace {.I = %I.decl} [template]
  16. // CHECK:STDOUT: %I.decl = interface_decl @I, () [template = constants.%.1]
  17. // CHECK:STDOUT: impl_decl @impl, (<unexpected instref inst+3>)
  18. // CHECK:STDOUT: }
  19. // CHECK:STDOUT:
  20. // CHECK:STDOUT: interface @I {
  21. // CHECK:STDOUT:
  22. // CHECK:STDOUT: !members:
  23. // CHECK:STDOUT: }
  24. // CHECK:STDOUT:
  25. // CHECK:STDOUT: impl @impl: i32 as I;
  26. // CHECK:STDOUT: