fail_assoc_const_template.carbon 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/interface/no_prelude/fail_assoc_const_template.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/interface/no_prelude/fail_assoc_const_template.carbon
  10. interface I {
  11. // CHECK:STDERR: fail_assoc_const_template.carbon:[[@LINE+3]]:7: ERROR: Semantics TODO: `HandleTemplate`.
  12. // CHECK:STDERR: let template T:! type;
  13. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~
  14. let template T:! type;
  15. }
  16. // CHECK:STDOUT: --- fail_assoc_const_template.carbon
  17. // CHECK:STDOUT:
  18. // CHECK:STDOUT: constants {
  19. // CHECK:STDOUT: %.1: type = interface_type @I [template]
  20. // CHECK:STDOUT: %Self: %.1 = bind_symbolic_name Self 0 [symbolic]
  21. // CHECK:STDOUT: }
  22. // CHECK:STDOUT:
  23. // CHECK:STDOUT: file {}
  24. // CHECK:STDOUT:
  25. // CHECK:STDOUT: interface @I {
  26. // CHECK:STDOUT: !members:
  27. // CHECK:STDOUT: .Self = <unexpected instref inst+3>
  28. // CHECK:STDOUT: witness = invalid
  29. // CHECK:STDOUT: }
  30. // CHECK:STDOUT: