fail_todo_private.carbon 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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:STDERR: fail_todo_private.carbon:[[@LINE+3]]:1: ERROR: Semantics TODO: `access modifier`.
  8. // CHECK:STDERR: private alias A = C;
  9. // CHECK:STDERR: ^~~~~~~
  10. private alias A = C;
  11. // CHECK:STDOUT: --- fail_todo_private.carbon
  12. // CHECK:STDOUT:
  13. // CHECK:STDOUT: constants {
  14. // CHECK:STDOUT: %C: type = class_type @C [template]
  15. // CHECK:STDOUT: %.1: type = struct_type {} [template]
  16. // CHECK:STDOUT: }
  17. // CHECK:STDOUT:
  18. // CHECK:STDOUT: file {
  19. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  20. // CHECK:STDOUT: .Core = %Core
  21. // CHECK:STDOUT: .C = %C.decl
  22. // CHECK:STDOUT: .A = %A
  23. // CHECK:STDOUT: }
  24. // CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
  25. // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {}
  26. // CHECK:STDOUT: %C.ref: type = name_ref C, %C.decl [template = constants.%C]
  27. // CHECK:STDOUT: %A: type = bind_alias A, %C.decl [template = constants.%C]
  28. // CHECK:STDOUT: }
  29. // CHECK:STDOUT:
  30. // CHECK:STDOUT: class @C {
  31. // CHECK:STDOUT: !members:
  32. // CHECK:STDOUT: .Self = constants.%C
  33. // CHECK:STDOUT: }
  34. // CHECK:STDOUT: