fail_name_with_import_failure.carbon 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. // --- implicit.impl.carbon
  7. // CHECK:STDERR: implicit.impl.carbon:[[@LINE+3]]:1: ERROR: Corresponding API not found.
  8. // CHECK:STDERR: package Implicit impl;
  9. // CHECK:STDERR: ^~~~~~~
  10. package Implicit impl;
  11. var a: () = A();
  12. // CHECK:STDOUT: --- implicit.impl.carbon
  13. // CHECK:STDOUT:
  14. // CHECK:STDOUT: constants {
  15. // CHECK:STDOUT: %.loc7: type = tuple_type ()
  16. // CHECK:STDOUT: }
  17. // CHECK:STDOUT:
  18. // CHECK:STDOUT: file {
  19. // CHECK:STDOUT: package: <namespace> = namespace {.a = %a, has_load_error}
  20. // CHECK:STDOUT: %.loc7_9.1: () = tuple_literal ()
  21. // CHECK:STDOUT: %.loc7_9.2: type = converted %.loc7_9.1, constants.%.loc7
  22. // CHECK:STDOUT: %a.var: ref () = var a
  23. // CHECK:STDOUT: %a: ref () = bind_name a, %a.var
  24. // CHECK:STDOUT: %A.ref: <error> = name_ref A, <error>
  25. // CHECK:STDOUT: assign %a.var, <error>
  26. // CHECK:STDOUT: }
  27. // CHECK:STDOUT: