generic.carbon 982 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. class C[]();
  7. // CHECK:STDOUT: --- generic.carbon
  8. // CHECK:STDOUT:
  9. // CHECK:STDOUT: constants {
  10. // CHECK:STDOUT: %C.1: type = generic_class_type @C [template]
  11. // CHECK:STDOUT: %.1: type = tuple_type () [template]
  12. // CHECK:STDOUT: %struct: C = struct_value () [template]
  13. // CHECK:STDOUT: %C.2: type = class_type @C [template]
  14. // CHECK:STDOUT: }
  15. // CHECK:STDOUT:
  16. // CHECK:STDOUT: file {
  17. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  18. // CHECK:STDOUT: .Core = %Core
  19. // CHECK:STDOUT: .C = %C.decl
  20. // CHECK:STDOUT: }
  21. // CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
  22. // CHECK:STDOUT: %C.decl: C = class_decl @C [template = constants.%struct] {}
  23. // CHECK:STDOUT: }
  24. // CHECK:STDOUT:
  25. // CHECK:STDOUT: class @C;
  26. // CHECK:STDOUT: