fail_name_with_import_failure.carbon 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. // --- fail_implicit.impl.carbon
  7. // CHECK:STDERR: fail_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: --- fail_implicit.impl.carbon
  13. // CHECK:STDOUT:
  14. // CHECK:STDOUT: constants {
  15. // CHECK:STDOUT: %.1: type = tuple_type () [template]
  16. // CHECK:STDOUT: }
  17. // CHECK:STDOUT:
  18. // CHECK:STDOUT: file {
  19. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  20. // CHECK:STDOUT: .a = %a
  21. // CHECK:STDOUT: has_error
  22. // CHECK:STDOUT: }
  23. // CHECK:STDOUT: %.loc7_9.1: () = tuple_literal ()
  24. // CHECK:STDOUT: %.loc7_9.2: type = converted %.loc7_9.1, constants.%.1 [template = constants.%.1]
  25. // CHECK:STDOUT: %a.var: ref () = var a
  26. // CHECK:STDOUT: %a: ref () = bind_name a, %a.var
  27. // CHECK:STDOUT: }
  28. // CHECK:STDOUT:
  29. // CHECK:STDOUT: fn @__global_init() {
  30. // CHECK:STDOUT: !entry:
  31. // CHECK:STDOUT: %A.ref: <error> = name_ref A, <error> [template = <error>]
  32. // CHECK:STDOUT: assign file.%a.var, <error>
  33. // CHECK:STDOUT: return
  34. // CHECK:STDOUT: }
  35. // CHECK:STDOUT: