mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 18:32:40 +00:00
Use the name of a function as the name of its file-scope value. (#3262)
As requested in #3260.
This commit is contained in:
1 parent
a46ca6bf7a
commit
e15b24e77d
99 files changed
+187
-177
No files matched your search
+2
-2
@@ -13,8 +13,8 @@ fn G() -> i32 {
|
||||
}
|
||||
|
||||
// CHECK:STDOUT: file "function_param.carbon" {
|
||||
// CHECK:STDOUT: %.loc7 = fn_decl @F
|
||||
// CHECK:STDOUT: %.loc11 = fn_decl @G
|
||||
// CHECK:STDOUT: %F = fn_decl @F
|
||||
// CHECK:STDOUT: %G = fn_decl @G
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @F(%arr: [i32; 3], %i: i32) -> i32 {
|
||||
|
||||
Reference in new issue
Block a user