mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 19:21:12 +00:00
Rename files to use "expr" and "deref" (#3426)
Follows #3425 and #3375 .
This commit is contained in:
1 parent
5a098089c5
commit
a307e7a72a
26 files changed
+24
-24
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
||||
// Exceptions. See /LICENSE for license information.
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
// AUTOUPDATE
|
||||
|
||||
fn A() {
|
||||
// CHECK:STDERR: fail_deref_function.carbon:[[@LINE+3]]:4: ERROR: Expression cannot be used as a value.
|
||||
// CHECK:STDERR: *A;
|
||||
// CHECK:STDERR: ^
|
||||
*A;
|
||||
}
|
||||
|
||||
// CHECK:STDOUT: file "fail_deref_function.carbon" {
|
||||
// CHECK:STDOUT: %A: <function> = fn_decl @A
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @A() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %A.ref: <function> = name_ref A, file.%A
|
||||
// CHECK:STDOUT: %.loc11: ref <error> = deref <error>
|
||||
// CHECK:STDOUT: return
|
||||
// CHECK:STDOUT: }
|
||||
Reference in new issue
Block a user