| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162 |
- // 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
- // TIP: To test this file alone, run:
- // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/interface/no_prelude/syntactic_merge.carbon
- // TIP: To dump output, run:
- // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/interface/no_prelude/syntactic_merge.carbon
- // --- basic.carbon
- library "[[@TEST_NAME]]";
- class C {}
- alias D = C;
- interface Foo(a:! C);
- interface Foo(a:! C) {}
- interface Bar(a:! D);
- interface Bar(a:! D) {}
- // --- spacing.carbon
- library "[[@TEST_NAME]]";
- class C {}
- interface Foo [ ] ( a :! C );
- interface Foo[](a:! C) {}
- // --- fail_parens.carbon
- library "[[@TEST_NAME]]";
- class C {}
- interface Foo(a:! C);
- // CHECK:STDERR: fail_parens.carbon:[[@LINE+7]]:19: error: redeclaration syntax differs here
- // CHECK:STDERR: interface Foo(a:! (C)) {}
- // CHECK:STDERR: ^
- // CHECK:STDERR: fail_parens.carbon:[[@LINE-4]]:19: note: comparing with previous declaration here
- // CHECK:STDERR: interface Foo(a:! C);
- // CHECK:STDERR: ^
- // CHECK:STDERR:
- interface Foo(a:! (C)) {}
- // --- todo_fail_raw_identifier.carbon
- library "[[@TEST_NAME]]";
- class C {}
- interface Foo(a:! C);
- interface Foo(a:! r#C) {}
- // --- two_file.carbon
- library "[[@TEST_NAME]]";
- class C {}
- alias D = C;
- interface Foo(a:! C);
- interface Bar(a:! D);
- // --- fail_todo_two_file.impl.carbon
- impl library "[[@TEST_NAME]]";
- // CHECK:STDERR: fail_todo_two_file.impl.carbon:[[@LINE+8]]:1: error: duplicate name being declared in the same scope
- // CHECK:STDERR: interface Foo(a:! C) {}
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_todo_two_file.impl.carbon:[[@LINE-5]]:6: in import
- // CHECK:STDERR: two_file.carbon:7:1: note: name is previously declared here
- // CHECK:STDERR: interface Foo(a:! C);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- interface Foo(a:! C) {}
- // CHECK:STDERR: fail_todo_two_file.impl.carbon:[[@LINE+8]]:1: error: duplicate name being declared in the same scope
- // CHECK:STDERR: interface Bar(a:! D) {}
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_todo_two_file.impl.carbon:[[@LINE-14]]:6: in import
- // CHECK:STDERR: two_file.carbon:8:1: note: name is previously declared here
- // CHECK:STDERR: interface Bar(a:! D);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- interface Bar(a:! D) {}
- // --- fail_name_mismatch.carbon
- library "[[@TEST_NAME]]";
- class C {}
- alias D = C;
- interface Foo(a:! C);
- // CHECK:STDERR: fail_name_mismatch.carbon:[[@LINE+7]]:15: error: redeclaration differs at parameter 1
- // CHECK:STDERR: interface Foo(b:! D) {}
- // CHECK:STDERR: ^
- // CHECK:STDERR: fail_name_mismatch.carbon:[[@LINE-4]]:15: note: previous declaration's corresponding parameter here
- // CHECK:STDERR: interface Foo(a:! C);
- // CHECK:STDERR: ^
- // CHECK:STDERR:
- interface Foo(b:! D) {}
- // --- fail_alias.carbon
- library "[[@TEST_NAME]]";
- class C {}
- alias D = C;
- interface Foo(a:! C);
- // CHECK:STDERR: fail_alias.carbon:[[@LINE+7]]:19: error: redeclaration syntax differs here
- // CHECK:STDERR: interface Foo(a:! D) {}
- // CHECK:STDERR: ^
- // CHECK:STDERR: fail_alias.carbon:[[@LINE-4]]:19: note: comparing with previous declaration here
- // CHECK:STDERR: interface Foo(a:! C);
- // CHECK:STDERR: ^
- // CHECK:STDERR:
- interface Foo(a:! D) {}
- // --- fail_deduced_alias.carbon
- library "[[@TEST_NAME]]";
- class C {}
- alias D = C;
- interface Foo[a:! C]();
- // CHECK:STDERR: fail_deduced_alias.carbon:[[@LINE+7]]:19: error: redeclaration syntax differs here
- // CHECK:STDERR: interface Foo[a:! D]() {}
- // CHECK:STDERR: ^
- // CHECK:STDERR: fail_deduced_alias.carbon:[[@LINE-4]]:19: note: comparing with previous declaration here
- // CHECK:STDERR: interface Foo[a:! C]();
- // CHECK:STDERR: ^
- // CHECK:STDERR:
- interface Foo[a:! D]() {}
- // --- alias_two_file.carbon
- library "[[@TEST_NAME]]";
- class C {}
- interface Foo(a:! C);
- // --- fail_alias_two_file.impl.carbon
- impl library "[[@TEST_NAME]]";
- alias D = C;
- // TODO: This fails because importing interfaces doesn't work well. It should
- // fail due to `C` versus `D`, but may succeed if importing interfaces is fixed
- // before syntax matching on imports is supported.
- // CHECK:STDERR: fail_alias_two_file.impl.carbon:[[@LINE+8]]:1: error: duplicate name being declared in the same scope
- // CHECK:STDERR: interface Foo(a:! D) {}
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR: fail_alias_two_file.impl.carbon:[[@LINE-10]]:6: in import
- // CHECK:STDERR: alias_two_file.carbon:6:1: note: name is previously declared here
- // CHECK:STDERR: interface Foo(a:! C);
- // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~
- // CHECK:STDERR:
- interface Foo(a:! D) {}
- // --- fail_repeat_const.carbon
- library "[[@TEST_NAME]]";
- class C {}
- interface Foo(a:! const C);
- // CHECK:STDERR: fail_repeat_const.carbon:[[@LINE+10]]:19: warning: `const` applied repeatedly to the same type has no additional effect
- // CHECK:STDERR: interface Foo(a:! const (const C)) {}
- // CHECK:STDERR: ^~~~~~~~~~~~~~~
- // CHECK:STDERR:
- // CHECK:STDERR: fail_repeat_const.carbon:[[@LINE+6]]:25: error: redeclaration syntax differs here
- // CHECK:STDERR: interface Foo(a:! const (const C)) {}
- // CHECK:STDERR: ^
- // CHECK:STDERR: fail_repeat_const.carbon:[[@LINE-8]]:25: note: comparing with previous declaration here
- // CHECK:STDERR: interface Foo(a:! const C);
- // CHECK:STDERR: ^
- interface Foo(a:! const (const C)) {}
- // CHECK:STDOUT: --- basic.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.4: type = interface_type @Foo, @Foo(%a) [symbolic]
- // CHECK:STDOUT: %Self.1: %.4 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: %Bar.type: type = generic_interface_type @Bar [template]
- // CHECK:STDOUT: %Bar: %Bar.type = struct_value () [template]
- // CHECK:STDOUT: %.5: type = interface_type @Bar, @Bar(%a) [symbolic]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .D = %D
- // CHECK:STDOUT: .Foo = %Foo.decl.loc7
- // CHECK:STDOUT: .Bar = %Bar.decl.loc10
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %C.ref: type = name_ref C, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %D: type = bind_alias D, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc7: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a 0, %a.param.loc7 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Foo.decl.loc8: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref.loc8: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc8: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc8: %C = bind_symbolic_name a 0, %a.param.loc8 [symbolic = constants.%a]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Bar.decl.loc10: %Bar.type = interface_decl @Bar [template = constants.%Bar] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref.loc10: type = name_ref D, file.%D [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc10: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc10: %C = bind_symbolic_name a 0, %a.param.loc10 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Bar.decl.loc11: %Bar.type = interface_decl @Bar [template = constants.%Bar] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref.loc11: type = name_ref D, file.%D [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc11: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc11: %C = bind_symbolic_name a 0, %a.param.loc11 [symbolic = constants.%a]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc7: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @Foo, @Foo(%a.1) [symbolic = %.1 (constants.%.4)]
- // CHECK:STDOUT: %Self.2: %.4 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.1)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @Foo.%.1 (%.4) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.1)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Bar(%a.loc10: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @Bar, @Bar(%a.1) [symbolic = %.1 (constants.%.5)]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.2)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @Bar.%.1 (%.5) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.2)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(@Foo.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Bar(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Bar(@Bar.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- spacing.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.4: type = interface_type @Foo, @Foo(%a) [symbolic]
- // CHECK:STDOUT: %Self: %.4 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .Foo = %Foo.decl.loc6
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %Foo.decl.loc6: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc6: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc6: %C = bind_symbolic_name a 0, %a.param.loc6 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc7: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a 0, %a.param.loc7 [symbolic = constants.%a]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc6: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @Foo, @Foo(%a.1) [symbolic = %.1 (constants.%.4)]
- // CHECK:STDOUT: %Self.2: %.4 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @Foo.%.1 (%.4) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(@Foo.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- fail_parens.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.type: type = generic_interface_type @.1 [template]
- // CHECK:STDOUT: %.4: %.type = struct_value () [template]
- // CHECK:STDOUT: %.5: type = interface_type @.1, @.1(%a) [symbolic]
- // CHECK:STDOUT: %Self: %.5 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .Foo = %Foo.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %Foo.decl: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc6: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %.decl: %.type = interface_decl @.1 [template = constants.%.4] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc14: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc6: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.1(%a.loc14: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.1, @.1(%a.1) [symbolic = %.1 (constants.%.5)]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.1.%.1 (%.5) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(@.1.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- todo_fail_raw_identifier.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.4: type = interface_type @Foo, @Foo(%a) [symbolic]
- // CHECK:STDOUT: %Self: %.4 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .Foo = %Foo.decl.loc6
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %Foo.decl.loc6: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref.loc6: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc6: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc6: %C = bind_symbolic_name a 0, %a.param.loc6 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Foo.decl.loc7: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref.loc7: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param.loc7: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a 0, %a.param.loc7 [symbolic = constants.%a]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc6: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @Foo, @Foo(%a.1) [symbolic = %.1 (constants.%.4)]
- // CHECK:STDOUT: %Self.2: %.4 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @Foo.%.1 (%.4) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(@Foo.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- two_file.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %Bar.type: type = generic_interface_type @Bar [template]
- // CHECK:STDOUT: %Bar: %Bar.type = struct_value () [template]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .D = %D
- // CHECK:STDOUT: .Foo = %Foo.decl
- // CHECK:STDOUT: .Bar = %Bar.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %C.ref: type = name_ref C, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %D: type = bind_alias D, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %Foo.decl: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Bar.decl: %Bar.type = interface_decl @Bar [template = constants.%Bar] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc8: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc7: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Bar(%a.loc8: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Bar(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- fail_todo_two_file.impl.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.type.1: type = generic_interface_type @.1 [template]
- // CHECK:STDOUT: %.4: %.type.1 = struct_value () [template]
- // CHECK:STDOUT: %.5: type = interface_type @.1, @.1(%a) [symbolic]
- // CHECK:STDOUT: %Self.1: %.5 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: %Bar.type: type = generic_interface_type @Bar [template]
- // CHECK:STDOUT: %Bar: %Bar.type = struct_value () [template]
- // CHECK:STDOUT: %.type.2: type = generic_interface_type @.2 [template]
- // CHECK:STDOUT: %.6: %.type.2 = struct_value () [template]
- // CHECK:STDOUT: %.7: type = interface_type @.2, @.2(%a) [symbolic]
- // CHECK:STDOUT: %Self.2: %.7 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: imports {
- // CHECK:STDOUT: %import_ref.1: type = import_ref Main//two_file, inst+1, loaded [template = constants.%C]
- // CHECK:STDOUT: %import_ref.2: type = import_ref Main//two_file, inst+7, loaded [template = constants.%C]
- // CHECK:STDOUT: %import_ref.3: %Foo.type = import_ref Main//two_file, inst+13, loaded [template = constants.%Foo]
- // CHECK:STDOUT: %import_ref.4: %Bar.type = import_ref Main//two_file, inst+22, loaded [template = constants.%Bar]
- // CHECK:STDOUT: %import_ref.5 = import_ref Main//two_file, inst+2, unloaded
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = imports.%import_ref.1
- // CHECK:STDOUT: .D = imports.%import_ref.2
- // CHECK:STDOUT: .Foo = imports.%import_ref.3
- // CHECK:STDOUT: .Bar = imports.%import_ref.4
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %default.import.loc2_6.1 = import <invalid>
- // CHECK:STDOUT: %default.import.loc2_6.2 = import <invalid>
- // CHECK:STDOUT: %.decl.loc12: %.type.1 = interface_decl @.1 [template = constants.%.4] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.1 [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc12: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %.decl.loc21: %.type.2 = interface_decl @.2 [template = constants.%.6] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref: type = name_ref D, imports.%import_ref.2 [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc21: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(constants.%a: %C) {
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic = %a (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.1(%a.loc12: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.1, @.1(%a.1) [symbolic = %.1 (constants.%.5)]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.1)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.1.%.1 (%.5) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.1)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Bar(constants.%a: %C) {
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic = %a (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.2(%a.loc21: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.2, @.2(%a.1) [symbolic = %.1 (constants.%.7)]
- // CHECK:STDOUT: %Self.2: %.7 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.2)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.2.%.1 (%.7) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self.2)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = imports.%import_ref.5
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(@.1.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Bar(constants.%a) {
- // CHECK:STDOUT: %a => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.2(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.2(@.2.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- fail_name_mismatch.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %b: %C = bind_symbolic_name b 0 [symbolic]
- // CHECK:STDOUT: %.type: type = generic_interface_type @.1 [template]
- // CHECK:STDOUT: %.4: %.type = struct_value () [template]
- // CHECK:STDOUT: %.5: type = interface_type @.1, @.1(%b) [symbolic]
- // CHECK:STDOUT: %Self: %.5 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .D = %D
- // CHECK:STDOUT: .Foo = %Foo.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %C.ref: type = name_ref C, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %D: type = bind_alias D, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %Foo.decl: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %.decl: %.type = interface_decl @.1 [template = constants.%.4] {
- // CHECK:STDOUT: %b.patt: %C = symbolic_binding_pattern b 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C]
- // CHECK:STDOUT: %b.param: %C = param b, runtime_param<invalid>
- // CHECK:STDOUT: %b.loc15: %C = bind_symbolic_name b 0, %b.param [symbolic = %b.1 (constants.%b)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc7: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.1(%b.loc15: %C) {
- // CHECK:STDOUT: %b.1: %C = bind_symbolic_name b 0 [symbolic = %b.1 (constants.%b)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.1, @.1(%b.1) [symbolic = %.1 (constants.%.5)]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.1.%.1 (%.5) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(constants.%b) {
- // CHECK:STDOUT: %b.1 => constants.%b
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(@.1.%b.1) {
- // CHECK:STDOUT: %b.1 => constants.%b
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- fail_alias.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.type: type = generic_interface_type @.1 [template]
- // CHECK:STDOUT: %.4: %.type = struct_value () [template]
- // CHECK:STDOUT: %.5: type = interface_type @.1, @.1(%a) [symbolic]
- // CHECK:STDOUT: %Self: %.5 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .D = %D
- // CHECK:STDOUT: .Foo = %Foo.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %C.ref: type = name_ref C, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %D: type = bind_alias D, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %Foo.decl: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %.decl: %.type = interface_decl @.1 [template = constants.%.4] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc15: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc7: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.1(%a.loc15: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.1, @.1(%a.1) [symbolic = %.1 (constants.%.5)]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.1.%.1 (%.5) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(@.1.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- fail_deduced_alias.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.type: type = generic_interface_type @.1 [template]
- // CHECK:STDOUT: %.4: %.type = struct_value () [template]
- // CHECK:STDOUT: %.5: type = interface_type @.1, @.1(%a) [symbolic]
- // CHECK:STDOUT: %Self: %.5 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .D = %D
- // CHECK:STDOUT: .Foo = %Foo.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %C.ref: type = name_ref C, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %D: type = bind_alias D, %C.decl [template = constants.%C]
- // CHECK:STDOUT: %Foo.decl: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc7: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %.decl: %.type = interface_decl @.1 [template = constants.%.4] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc15: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc7: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.1(%a.loc15: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.1, @.1(%a.1) [symbolic = %.1 (constants.%.5)]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.1.%.1 (%.5) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(@.1.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- alias_two_file.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .Foo = %Foo.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %Foo.decl: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc6: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc6: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- fail_alias_two_file.impl.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.3: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.type: type = generic_interface_type @.1 [template]
- // CHECK:STDOUT: %.4: %.type = struct_value () [template]
- // CHECK:STDOUT: %.5: type = interface_type @.1, @.1(%a) [symbolic]
- // CHECK:STDOUT: %Self: %.5 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: imports {
- // CHECK:STDOUT: %import_ref.1: type = import_ref Main//alias_two_file, inst+1, loaded [template = constants.%C]
- // CHECK:STDOUT: %import_ref.2: %Foo.type = import_ref Main//alias_two_file, inst+11, loaded [template = constants.%Foo]
- // CHECK:STDOUT: %import_ref.3 = import_ref Main//alias_two_file, inst+2, unloaded
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = imports.%import_ref.1
- // CHECK:STDOUT: .Foo = imports.%import_ref.2
- // CHECK:STDOUT: .D = %D
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %default.import.loc2_6.1 = import <invalid>
- // CHECK:STDOUT: %default.import.loc2_6.2 = import <invalid>
- // CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.1 [template = constants.%C]
- // CHECK:STDOUT: %D: type = bind_alias D, imports.%import_ref.1 [template = constants.%C]
- // CHECK:STDOUT: %.decl: %.type = interface_decl @.1 [template = constants.%.4] {
- // CHECK:STDOUT: %a.patt: %C = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D [template = constants.%C]
- // CHECK:STDOUT: %a.param: %C = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc17: %C = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(constants.%a: %C) {
- // CHECK:STDOUT: %a: %C = bind_symbolic_name a 0 [symbolic = %a (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.1(%a.loc17: %C) {
- // CHECK:STDOUT: %a.1: %C = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.1, @.1(%a.1) [symbolic = %.1 (constants.%.5)]
- // CHECK:STDOUT: %Self.2: %.5 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.1.%.1 (%.5) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = imports.%import_ref.3
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(@.1.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- fail_repeat_const.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %C: type = class_type @C [template]
- // CHECK:STDOUT: %.1: type = struct_type {} [template]
- // CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
- // CHECK:STDOUT: %.3: type = const_type %C [template]
- // CHECK:STDOUT: %a: %.3 = bind_symbolic_name a 0 [symbolic]
- // CHECK:STDOUT: %Foo.type: type = generic_interface_type @Foo [template]
- // CHECK:STDOUT: %.4: type = tuple_type () [template]
- // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template]
- // CHECK:STDOUT: %.type: type = generic_interface_type @.1 [template]
- // CHECK:STDOUT: %.5: %.type = struct_value () [template]
- // CHECK:STDOUT: %.6: type = interface_type @.1, @.1(%a) [symbolic]
- // CHECK:STDOUT: %Self: %.6 = bind_symbolic_name Self 1 [symbolic]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .Foo = %Foo.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: type = class_decl @C [template = constants.%C] {} {}
- // CHECK:STDOUT: %Foo.decl: %Foo.type = interface_decl @Foo [template = constants.%Foo] {
- // CHECK:STDOUT: %a.patt: %.3 = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %.loc6: type = const_type %C [template = constants.%.3]
- // CHECK:STDOUT: %a.param: %.3 = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc6: %.3 = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %.decl: %.type = interface_decl @.1 [template = constants.%.5] {
- // CHECK:STDOUT: %a.patt: %.3 = symbolic_binding_pattern a 0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C]
- // CHECK:STDOUT: %.loc17_26: type = const_type %C [template = constants.%.3]
- // CHECK:STDOUT: %.loc17_19: type = const_type %.3 [template = constants.%.3]
- // CHECK:STDOUT: %a.param: %.3 = param a, runtime_param<invalid>
- // CHECK:STDOUT: %a.loc17: %.3 = bind_symbolic_name a 0, %a.param [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @Foo(%a.loc6: %.3) {
- // CHECK:STDOUT: %a.1: %.3 = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface;
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @.1(%a.loc17: %.3) {
- // CHECK:STDOUT: %a.1: %.3 = bind_symbolic_name a 0 [symbolic = %a.1 (constants.%a)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %.1: type = interface_type @.1, @.1(%a.1) [symbolic = %.1 (constants.%.6)]
- // CHECK:STDOUT: %Self.2: %.6 = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.1: @.1.%.1 (%.6) = bind_symbolic_name Self 1 [symbolic = %Self.2 (constants.%Self)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.1
- // CHECK:STDOUT: witness = ()
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @C {
- // CHECK:STDOUT: %.loc4: <witness> = complete_type_witness %.1 [template = constants.%.2]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Foo(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(constants.%a) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @.1(@.1.%a.1) {
- // CHECK:STDOUT: %a.1 => constants.%a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
|