mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01: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:
@@ -9,8 +9,8 @@ fn F();
|
||||
fn G() { F(); }
|
||||
|
||||
// CHECK:STDOUT: file "simple.carbon" {
|
||||
// CHECK:STDOUT: %.loc7 = fn_decl @F
|
||||
// CHECK:STDOUT: %.loc9 = fn_decl @G
|
||||
// CHECK:STDOUT: %F = fn_decl @F
|
||||
// CHECK:STDOUT: %G = fn_decl @G
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @F();
|
||||
|
||||
Reference in New Issue
Block a user