implicit_imports.carbon 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. // --- api_only.carbon
  7. package ApiOnly api;
  8. // --- api_only_lib.carbon
  9. package ApiOnly library "lib" api;
  10. // --- with_impl_api.carbon
  11. package WithImpl api;
  12. // --- with_impl_impl.carbon
  13. package WithImpl impl;
  14. // --- with_impl_impl_extra.carbon
  15. // Multiple impls are allowed.
  16. package WithImpl impl;
  17. // --- with_impl_lib_api.carbon
  18. package WithImpl library "lib" api;
  19. // --- with_impl_lib_impl.carbon
  20. package WithImpl library "lib" impl;
  21. // CHECK:STDOUT: file "api_only.carbon" {
  22. // CHECK:STDOUT: }
  23. // CHECK:STDOUT: constants {
  24. // CHECK:STDOUT: %.1: type = ptr_type String
  25. // CHECK:STDOUT: }
  26. // CHECK:STDOUT:
  27. // CHECK:STDOUT: file "api_only_lib.carbon" {
  28. // CHECK:STDOUT: %.loc2: String = string_literal "lib"
  29. // CHECK:STDOUT: }
  30. // CHECK:STDOUT: file "with_impl_api.carbon" {
  31. // CHECK:STDOUT: }
  32. // CHECK:STDOUT: file "with_impl_impl.carbon" {
  33. // CHECK:STDOUT: }
  34. // CHECK:STDOUT: file "with_impl_impl_extra.carbon" {
  35. // CHECK:STDOUT: }
  36. // CHECK:STDOUT: constants {
  37. // CHECK:STDOUT: %.1: type = ptr_type String
  38. // CHECK:STDOUT: }
  39. // CHECK:STDOUT:
  40. // CHECK:STDOUT: file "with_impl_lib_api.carbon" {
  41. // CHECK:STDOUT: %.loc2: String = string_literal "lib"
  42. // CHECK:STDOUT: }
  43. // CHECK:STDOUT: constants {
  44. // CHECK:STDOUT: %.1: type = ptr_type String
  45. // CHECK:STDOUT: }
  46. // CHECK:STDOUT:
  47. // CHECK:STDOUT: file "with_impl_lib_impl.carbon" {
  48. // CHECK:STDOUT: %.loc2: String = string_literal "lib"
  49. // CHECK:STDOUT: }