fail_missing_nested.carbon 691 B

1234567891011121314151617181920212223
  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. // RUN: %{not} %{explorer-run}
  7. // RUN: %{not} %{explorer-run-trace}
  8. package ExplorerTest api;
  9. namespace A;
  10. namespace A.B;
  11. namespace A.B.C;
  12. fn A.B.C.
  13. // CHECK:STDERR: COMPILATION ERROR: {{.*}}/explorer/testdata/namespace/fail_missing_nested.carbon:[[@LINE+1]]: name 'D' has not been declared in namespace A.B.C
  14. D
  15. // Don't combine with the previous line. This test is verifying that the
  16. // diagnostic points at the right token.
  17. .E.F() {}
  18. fn Main() -> i32 {
  19. return 0;
  20. }