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