fail_dereference_error.carbon 680 B

12345678910111213141516
  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_dereference_error.carbon:[[@LINE+3]]:15: ERROR: Name `undeclared` not found.
  7. // CHECK:STDERR: let n: i32 = *undeclared;
  8. // CHECK:STDERR: ^
  9. let n: i32 = *undeclared;
  10. // CHECK:STDOUT: file "fail_dereference_error.carbon" {
  11. // CHECK:STDOUT: %undeclared.ref: <error> = name_reference undeclared, <error>
  12. // CHECK:STDOUT: %.loc10: ref <error> = dereference <error>
  13. // CHECK:STDOUT: %n: i32 = bind_name n, <error>
  14. // CHECK:STDOUT: }