fail_unresolved_scope.carbon 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. // CHECK:STDERR: fail_unresolved_scope.carbon:[[@LINE+3]]:4: ERROR: Name `Foo` not found.
  7. // CHECK:STDERR: fn Foo.Baz() {
  8. // CHECK:STDERR: ^~~
  9. fn Foo.Baz() {
  10. }
  11. // CHECK:STDOUT: --- fail_unresolved_scope.carbon
  12. // CHECK:STDOUT:
  13. // CHECK:STDOUT: constants {
  14. // CHECK:STDOUT: %.1: type = fn_type @.1 [template]
  15. // CHECK:STDOUT: %.2: type = tuple_type () [template]
  16. // CHECK:STDOUT: %struct: <invalid> = struct_value () [template]
  17. // CHECK:STDOUT: }
  18. // CHECK:STDOUT:
  19. // CHECK:STDOUT: file {
  20. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  21. // CHECK:STDOUT: .Core = %Core
  22. // CHECK:STDOUT: }
  23. // CHECK:STDOUT: %Core: <namespace> = namespace [template] {}
  24. // CHECK:STDOUT: %.decl: <invalid> = fn_decl @.1 [template = constants.%struct] {}
  25. // CHECK:STDOUT: }
  26. // CHECK:STDOUT:
  27. // CHECK:STDOUT: fn @.1() {
  28. // CHECK:STDOUT: !entry:
  29. // CHECK:STDOUT: return
  30. // CHECK:STDOUT: }
  31. // CHECK:STDOUT: