mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 21:48:10 +00:00
Shorthand names are intended to be used in the textual format of references to instructions in another IR (which can't happen now, but will be possible in a forthcoming PR). The shorthand name uses the file name (minus the `.carbon` suffix) as a base, and if that base name is ambiguous within the compilation, it is given a numerical suffix `.N`, just like other textual IR names. Shorthand names are prefixed with `$` in the textual format, to distinguish them from inst and scope names. For example, a file `foo/bar.carbon` has the shorthand name `$bar`, and an instruction `@baz.%qux` in that file can be referenced from another file as `$bar.@baz.%qux`. This PR adds `toolchain/check/testdata/basics/file_name.carbon` to test this behavior. All other test changes are just applying this change to the existing textual SemIR dumps. --------- Co-authored-by: Dana Jansens <danakj@orodu.net>
289 lines
18 KiB
Plaintext
289 lines
18 KiB
Plaintext
// 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
|
|
//
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
|
|
// TODO: Add ranges and switch to "--dump-sem-ir-ranges=only".
|
|
// EXTRA-ARGS: --dump-sem-ir-ranges=if-present
|
|
//
|
|
// AUTOUPDATE
|
|
// TIP: To test this file alone, run:
|
|
// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/function/definition/fail_decl_param_mismatch.carbon
|
|
// TIP: To dump output, run:
|
|
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/function/definition/fail_decl_param_mismatch.carbon
|
|
|
|
fn F();
|
|
// CHECK:STDERR: ╭─┤ fail_decl_param_mismatch.carbon:[[@LINE+11]]:1
|
|
// CHECK:STDERR: │ fn F();
|
|
// CHECK:STDERR: · ───┬───
|
|
// CHECK:STDERR: · ╰──┤ previously declared with parameter count of 0 [RedeclParamCountPrevious]
|
|
// CHECK:STDERR: ┆
|
|
// CHECK:STDERR: -> │ fn F(unused x: ()) {}
|
|
// CHECK:STDERR: · ━━━━━━━━━━┳━━━━━━━━━
|
|
// CHECK:STDERR: · ┗━━┫ error: redeclaration differs because of parameter count of 1
|
|
// CHECK:STDERR: · ┃ [RedeclParamCountDiffers]
|
|
// CHECK:STDERR: ╰────
|
|
// CHECK:STDERR:
|
|
fn F(unused x: ()) {}
|
|
|
|
fn G(x: ());
|
|
// CHECK:STDERR: ╭─┤ fail_decl_param_mismatch.carbon:[[@LINE+12]]:1
|
|
// CHECK:STDERR: │ fn G(x: ());
|
|
// CHECK:STDERR: · ──────┬─────
|
|
// CHECK:STDERR: · ╰──┤ previously declared with parameter count of 1
|
|
// CHECK:STDERR: · │ [RedeclParamCountPrevious]
|
|
// CHECK:STDERR: ┆
|
|
// CHECK:STDERR: -> │ fn G() {}
|
|
// CHECK:STDERR: · ━━━━┳━━━
|
|
// CHECK:STDERR: · ┗━━┫ error: redeclaration differs because of parameter count of 0
|
|
// CHECK:STDERR: · ┃ [RedeclParamCountDiffers]
|
|
// CHECK:STDERR: ╰────
|
|
// CHECK:STDERR:
|
|
fn G() {}
|
|
|
|
fn H(x: ());
|
|
// CHECK:STDERR: ╭─┤ fail_decl_param_mismatch.carbon:[[@LINE+8]]:16
|
|
// CHECK:STDERR: -> │ fn H(unused x: bool) {}
|
|
// CHECK:STDERR: · ┳━━━
|
|
// CHECK:STDERR: · ┗━━┫ error: `Core.Bool` implicitly referenced here, but package
|
|
// CHECK:STDERR: · ┃ `Core` not found
|
|
// CHECK:STDERR: · ┃ [CoreNotFound]
|
|
// CHECK:STDERR: ╰────
|
|
// CHECK:STDERR:
|
|
fn H(unused x: bool) {}
|
|
|
|
fn I();
|
|
// CHECK:STDERR: ╭─┤ fail_decl_param_mismatch.carbon:[[@LINE+12]]:1
|
|
// CHECK:STDERR: │ fn I();
|
|
// CHECK:STDERR: · ───┬───
|
|
// CHECK:STDERR: · ╰──┤ previously declared with no return type
|
|
// CHECK:STDERR: · │ [FunctionRedeclReturnTypePreviousNoReturn]
|
|
// CHECK:STDERR: ┆
|
|
// CHECK:STDERR: -> │ fn I() -> () { return (); }
|
|
// CHECK:STDERR: · ━━━━━━━┳━━━━━━
|
|
// CHECK:STDERR: · ┗━━┫ error: function redeclaration differs because return type is `()`
|
|
// CHECK:STDERR: · ┃ [FunctionRedeclReturnTypeDiffers]
|
|
// CHECK:STDERR: ╰────
|
|
// CHECK:STDERR:
|
|
fn I() -> () { return (); }
|
|
|
|
fn J() -> ();
|
|
// CHECK:STDERR: ╭─┤ fail_decl_param_mismatch.carbon:[[@LINE+12]]:1
|
|
// CHECK:STDERR: │ fn J() -> ();
|
|
// CHECK:STDERR: · ──────┬──────
|
|
// CHECK:STDERR: · ╰──┤ previously declared with return type `()`
|
|
// CHECK:STDERR: · │ [FunctionRedeclReturnTypePrevious]
|
|
// CHECK:STDERR: ┆
|
|
// CHECK:STDERR: -> │ fn J() {}
|
|
// CHECK:STDERR: · ━━━┳━━━━
|
|
// CHECK:STDERR: · ┗━━┫ error: function redeclaration differs because no return type is provided
|
|
// CHECK:STDERR: · ┃ [FunctionRedeclReturnTypeDiffersNoReturn]
|
|
// CHECK:STDERR: ╰────
|
|
// CHECK:STDERR:
|
|
fn J() {}
|
|
|
|
fn K() -> ();
|
|
// CHECK:STDERR: ╭─┤ fail_decl_param_mismatch.carbon:[[@LINE+12]]:1
|
|
// CHECK:STDERR: │ fn K() -> ();
|
|
// CHECK:STDERR: · ──────┬──────
|
|
// CHECK:STDERR: · ╰──┤ previously declared with return type `()`
|
|
// CHECK:STDERR: · │ [FunctionRedeclReturnTypePrevious]
|
|
// CHECK:STDERR: ┆
|
|
// CHECK:STDERR: -> │ fn K() -> {} { return {}; }
|
|
// CHECK:STDERR: · ━━━━━━━┳━━━━━━
|
|
// CHECK:STDERR: · ┗━━┫ error: function redeclaration differs because return type is `{}`
|
|
// CHECK:STDERR: · ┃ [FunctionRedeclReturnTypeDiffers]
|
|
// CHECK:STDERR: ╰────
|
|
// CHECK:STDERR:
|
|
fn K() -> {} { return {}; }
|
|
|
|
// CHECK:STDOUT: --- fail_decl_param_mismatch.carbon = $fail_decl_param_mismatch
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: constants {
|
|
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
|
// CHECK:STDOUT: %F.type.eb3ec9.1: type = fn_type @F.loc15 [concrete]
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
// CHECK:STDOUT: %F.7088cc.1: %F.type.eb3ec9.1 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
|
// CHECK:STDOUT: %pattern_type.cb1: type = pattern_type %empty_tuple.type [concrete]
|
|
// CHECK:STDOUT: %x.param_patt: %pattern_type.cb1 = value_param_pattern [concrete]
|
|
// CHECK:STDOUT: %x.patt.2180a6.1: %pattern_type.cb1 = wrapper_binding_pattern x, %x.param_patt [concrete]
|
|
// CHECK:STDOUT: %F.type.eb3ec9.2: type = fn_type @F.loc27 [concrete]
|
|
// CHECK:STDOUT: %F.7088cc.2: %F.type.eb3ec9.2 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %x.patt.2180a6.2: %pattern_type.cb1 = wrapper_binding_pattern x, %x.param_patt [concrete]
|
|
// CHECK:STDOUT: %G.type.f42045.1: type = fn_type @G.loc29 [concrete]
|
|
// CHECK:STDOUT: %G.4228ed.1: %G.type.f42045.1 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %G.type.f42045.2: type = fn_type @G.loc42 [concrete]
|
|
// CHECK:STDOUT: %G.4228ed.2: %G.type.f42045.2 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %H.type.c0bf33.1: type = fn_type @H.loc44 [concrete]
|
|
// CHECK:STDOUT: %H.aacb46.1: %H.type.c0bf33.1 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %H.type.c0bf33.2: type = fn_type @H.loc53 [concrete]
|
|
// CHECK:STDOUT: %H.aacb46.2: %H.type.c0bf33.2 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %I.type.4c8936.1: type = fn_type @I.loc55 [concrete]
|
|
// CHECK:STDOUT: %I.8a67f5.1: %I.type.4c8936.1 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %.262: Core.Form = init_form %empty_tuple.type [concrete]
|
|
// CHECK:STDOUT: %return.param_patt.900: %pattern_type.cb1 = out_param_pattern [concrete]
|
|
// CHECK:STDOUT: %return.patt.427: %pattern_type.cb1 = return_slot_pattern %return.param_patt.900, %empty_tuple.type [concrete]
|
|
// CHECK:STDOUT: %I.type.4c8936.2: type = fn_type @I.loc68 [concrete]
|
|
// CHECK:STDOUT: %I.8a67f5.2: %I.type.4c8936.2 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %J.type.6304f1.1: type = fn_type @J.loc70 [concrete]
|
|
// CHECK:STDOUT: %J.64b370.1: %J.type.6304f1.1 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %J.type.6304f1.2: type = fn_type @J.loc83 [concrete]
|
|
// CHECK:STDOUT: %J.64b370.2: %J.type.6304f1.2 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %K.type.b73f4f.1: type = fn_type @K.loc85 [concrete]
|
|
// CHECK:STDOUT: %K.4fd1e7.1: %K.type.b73f4f.1 = struct_value () [concrete]
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %.469: Core.Form = init_form %empty_struct_type [concrete]
|
|
// CHECK:STDOUT: %pattern_type.a96: type = pattern_type %empty_struct_type [concrete]
|
|
// CHECK:STDOUT: %return.param_patt.296: %pattern_type.a96 = out_param_pattern [concrete]
|
|
// CHECK:STDOUT: %return.patt.c45: %pattern_type.a96 = return_slot_pattern %return.param_patt.296, %empty_struct_type [concrete]
|
|
// CHECK:STDOUT: %K.type.b73f4f.2: type = fn_type @K.loc98 [concrete]
|
|
// CHECK:STDOUT: %K.4fd1e7.2: %K.type.b73f4f.2 = struct_value () [concrete]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: file {
|
|
// CHECK:STDOUT: package: <namespace> = namespace [concrete] {
|
|
// CHECK:STDOUT: .F = %F.decl.loc15
|
|
// CHECK:STDOUT: .G = %G.decl.loc29
|
|
// CHECK:STDOUT: .H = %H.decl.loc44
|
|
// CHECK:STDOUT: .I = %I.decl.loc55
|
|
// CHECK:STDOUT: .J = %J.decl.loc70
|
|
// CHECK:STDOUT: .K = %K.decl.loc85
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %F.decl.loc15: %F.type.eb3ec9.1 = fn_decl @F.loc15 [concrete = constants.%F.7088cc.1] {} {}
|
|
// CHECK:STDOUT: %F.decl.loc27: %F.type.eb3ec9.2 = fn_decl @F.loc27 [concrete = constants.%F.7088cc.2] {
|
|
// CHECK:STDOUT: %x.param_patt: %pattern_type.cb1 = value_param_pattern [concrete = constants.%x.param_patt]
|
|
// CHECK:STDOUT: %x.patt: %pattern_type.cb1 = wrapper_binding_pattern x, %x.param_patt [concrete = constants.%x.patt.2180a6.1]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %x.param: %empty_tuple.type = value_param call_param0
|
|
// CHECK:STDOUT: %.loc27_17.1: type = splice_block %.loc27_17.3 [concrete = constants.%empty_tuple.type] {
|
|
// CHECK:STDOUT: %.loc27_17.2: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc27_17.3: type = converted %.loc27_17.2, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %x: %empty_tuple.type = wrapper_binding x, %x.param
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %G.decl.loc29: %G.type.f42045.1 = fn_decl @G.loc29 [concrete = constants.%G.4228ed.1] {
|
|
// CHECK:STDOUT: %x.param_patt: %pattern_type.cb1 = value_param_pattern [concrete = constants.%x.param_patt]
|
|
// CHECK:STDOUT: %x.patt: %pattern_type.cb1 = wrapper_binding_pattern x, %x.param_patt [concrete = constants.%x.patt.2180a6.2]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %x.param: %empty_tuple.type = value_param call_param0
|
|
// CHECK:STDOUT: %.loc29_10.1: type = splice_block %.loc29_10.3 [concrete = constants.%empty_tuple.type] {
|
|
// CHECK:STDOUT: %.loc29_10.2: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc29_10.3: type = converted %.loc29_10.2, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %x: %empty_tuple.type = wrapper_binding x, %x.param
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %G.decl.loc42: %G.type.f42045.2 = fn_decl @G.loc42 [concrete = constants.%G.4228ed.2] {} {}
|
|
// CHECK:STDOUT: %H.decl.loc44: %H.type.c0bf33.1 = fn_decl @H.loc44 [concrete = constants.%H.aacb46.1] {
|
|
// CHECK:STDOUT: %x.param_patt: %pattern_type.cb1 = value_param_pattern [concrete = constants.%x.param_patt]
|
|
// CHECK:STDOUT: %x.patt: %pattern_type.cb1 = wrapper_binding_pattern x, %x.param_patt [concrete = constants.%x.patt.2180a6.2]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %x.param: %empty_tuple.type = value_param call_param0
|
|
// CHECK:STDOUT: %.loc44_10.1: type = splice_block %.loc44_10.3 [concrete = constants.%empty_tuple.type] {
|
|
// CHECK:STDOUT: %.loc44_10.2: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc44_10.3: type = converted %.loc44_10.2, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %x: %empty_tuple.type = wrapper_binding x, %x.param
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %H.decl.loc53: %H.type.c0bf33.2 = fn_decl @H.loc53 [concrete = constants.%H.aacb46.2] {
|
|
// CHECK:STDOUT: %x.param_patt: <error> = value_param_pattern [concrete = <error>]
|
|
// CHECK:STDOUT: %x.patt: <error> = wrapper_binding_pattern x, %x.param_patt [concrete = <error>]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %x.param: <error> = value_param call_param0
|
|
// CHECK:STDOUT: %.loc53: type = type_literal <error> [concrete = <error>]
|
|
// CHECK:STDOUT: %x: <error> = wrapper_binding x, <error> [concrete = <error>]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %I.decl.loc55: %I.type.4c8936.1 = fn_decl @I.loc55 [concrete = constants.%I.8a67f5.1] {} {}
|
|
// CHECK:STDOUT: %I.decl.loc68: %I.type.4c8936.2 = fn_decl @I.loc68 [concrete = constants.%I.8a67f5.2] {
|
|
// CHECK:STDOUT: %return.param_patt: %pattern_type.cb1 = out_param_pattern [concrete = constants.%return.param_patt.900]
|
|
// CHECK:STDOUT: %return.patt: %pattern_type.cb1 = return_slot_pattern %return.param_patt, %.loc68_12.2 [concrete = constants.%return.patt.427]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %.loc68_12.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc68_12.2: type = converted %.loc68_12.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc68_12.3: Core.Form = init_form %.loc68_12.2 [concrete = constants.%.262]
|
|
// CHECK:STDOUT: %return.param: ref %empty_tuple.type = out_param call_param0
|
|
// CHECK:STDOUT: %return: ref %empty_tuple.type = return_slot %return.param
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %J.decl.loc70: %J.type.6304f1.1 = fn_decl @J.loc70 [concrete = constants.%J.64b370.1] {
|
|
// CHECK:STDOUT: %return.param_patt: %pattern_type.cb1 = out_param_pattern [concrete = constants.%return.param_patt.900]
|
|
// CHECK:STDOUT: %return.patt: %pattern_type.cb1 = return_slot_pattern %return.param_patt, %.loc70_12.2 [concrete = constants.%return.patt.427]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %.loc70_12.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc70_12.2: type = converted %.loc70_12.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc70_12.3: Core.Form = init_form %.loc70_12.2 [concrete = constants.%.262]
|
|
// CHECK:STDOUT: %return.param: ref %empty_tuple.type = out_param call_param0
|
|
// CHECK:STDOUT: %return: ref %empty_tuple.type = return_slot %return.param
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %J.decl.loc83: %J.type.6304f1.2 = fn_decl @J.loc83 [concrete = constants.%J.64b370.2] {} {}
|
|
// CHECK:STDOUT: %K.decl.loc85: %K.type.b73f4f.1 = fn_decl @K.loc85 [concrete = constants.%K.4fd1e7.1] {
|
|
// CHECK:STDOUT: %return.param_patt: %pattern_type.cb1 = out_param_pattern [concrete = constants.%return.param_patt.900]
|
|
// CHECK:STDOUT: %return.patt: %pattern_type.cb1 = return_slot_pattern %return.param_patt, %.loc85_12.2 [concrete = constants.%return.patt.427]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %.loc85_12.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc85_12.2: type = converted %.loc85_12.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc85_12.3: Core.Form = init_form %.loc85_12.2 [concrete = constants.%.262]
|
|
// CHECK:STDOUT: %return.param: ref %empty_tuple.type = out_param call_param0
|
|
// CHECK:STDOUT: %return: ref %empty_tuple.type = return_slot %return.param
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: %K.decl.loc98: %K.type.b73f4f.2 = fn_decl @K.loc98 [concrete = constants.%K.4fd1e7.2] {
|
|
// CHECK:STDOUT: %return.param_patt: %pattern_type.a96 = out_param_pattern [concrete = constants.%return.param_patt.296]
|
|
// CHECK:STDOUT: %return.patt: %pattern_type.a96 = return_slot_pattern %return.param_patt, %.loc98_12.2 [concrete = constants.%return.patt.c45]
|
|
// CHECK:STDOUT: } {
|
|
// CHECK:STDOUT: %.loc98_12.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc98_12.2: type = converted %.loc98_12.1, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
// CHECK:STDOUT: %.loc98_12.3: Core.Form = init_form %.loc98_12.2 [concrete = constants.%.469]
|
|
// CHECK:STDOUT: %return.param: ref %empty_struct_type = out_param call_param0
|
|
// CHECK:STDOUT: %return: ref %empty_struct_type = return_slot %return.param
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @F.loc15();
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @F.loc27(%x.param: %empty_tuple.type) {
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: return
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @G.loc29(%x.param: %empty_tuple.type);
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @G.loc42() {
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: return
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @H.loc44(%x.param: %empty_tuple.type);
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @H.loc53(%x.param: <error>) {
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: return
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @I.loc55();
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @I.loc68() -> out %return.param: %empty_tuple.type {
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: %.loc68_24.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc68_24.2: init %empty_tuple.type = tuple_init () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc68_25: init %empty_tuple.type = converted %.loc68_24.1, %.loc68_24.2 [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: return %.loc68_25
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @J.loc70() -> out %return.param: %empty_tuple.type;
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @J.loc83() {
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: return
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @K.loc85() -> out %return.param: %empty_tuple.type;
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: fn @K.loc98() -> out %return.param: %empty_struct_type {
|
|
// CHECK:STDOUT: !entry:
|
|
// CHECK:STDOUT: %.loc98_24.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc98_24.2: init %empty_struct_type = struct_init () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc98_25: init %empty_struct_type = converted %.loc98_24.1, %.loc98_24.2 [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: return %.loc98_25
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|