Add a Core.Array class type, and make array refer to it. (#7892)

As described in proposal #4682, make `array(T, N)` be syntactic sugar
for the type `Core.Array` defined in the standard library. This provides
a home for impls that are specific to `Core.Array`.

Assisted-by: Gemini and Claude via Antigravity
This commit is contained in:
Richard Smith authored and GitHub committed 2026-10-06 17:23:49 +00:00
1 parent a50feb64ce
commit 947c1eb527
131 files changed
+9007 -8238

No files matched your search

@@ -122,23 +122,23 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 0, ptr @_C__global_init.Main, ptr null }]
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define void @_CMyF.Main() #0 !dbg !61 {
// CHECK:STDOUT: define void @_CMyF.Main() #0 !dbg !63 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %.loc7_19.3.temp = alloca i8, align 1, !dbg !62
// CHECK:STDOUT: %.loc7_22.3.temp = alloca i16, align 2, !dbg !63
// CHECK:STDOUT: %.loc9_21.3.temp = alloca i8, align 1, !dbg !65
// CHECK:STDOUT: %.loc9_24.3.temp = alloca i16, align 2, !dbg !66
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc7_19.3.temp), !dbg !62
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc7_22.3.temp), !dbg !63
// CHECK:STDOUT: call void @_Z11pass_signedasil.carbon_thunk.____(ptr @int_1.f1e, ptr @int_2.5c2, i32 3, i64 4), !dbg !64
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr @int_2.5c2), !dbg !63
// CHECK:STDOUT: call void @"_CSelfDestruct.4954785a8b134801:core.Destroy.Core"(ptr @int_1.f1e), !dbg !62
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc9_21.3.temp), !dbg !65
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc9_24.3.temp), !dbg !66
// CHECK:STDOUT: call void @_Z13pass_unsignedhtjm.carbon_thunk.____(ptr @int_1.067, ptr @int_2.ec3, i32 3, i64 4), !dbg !67
// CHECK:STDOUT: call void @"_CSelfDestruct.3bc9e5dacf328f74:core.Destroy.Core"(ptr @int_2.ec3), !dbg !66
// CHECK:STDOUT: call void @"_CSelfDestruct.be60742f00557eec:core.Destroy.Core"(ptr @int_1.067), !dbg !65
// CHECK:STDOUT: ret void, !dbg !68
// CHECK:STDOUT: %.loc7_19.3.temp = alloca i8, align 1, !dbg !64
// CHECK:STDOUT: %.loc7_22.3.temp = alloca i16, align 2, !dbg !65
// CHECK:STDOUT: %.loc9_21.3.temp = alloca i8, align 1, !dbg !67
// CHECK:STDOUT: %.loc9_24.3.temp = alloca i16, align 2, !dbg !68
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc7_19.3.temp), !dbg !64
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc7_22.3.temp), !dbg !65
// CHECK:STDOUT: call void @_Z11pass_signedasil.carbon_thunk.____(ptr @int_1.f1e, ptr @int_2.5c2, i32 3, i64 4), !dbg !66
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr @int_2.5c2), !dbg !65
// CHECK:STDOUT: call void @"_CSelfDestruct.4954785a8b134801:core.Destroy.Core"(ptr @int_1.f1e), !dbg !64
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc9_21.3.temp), !dbg !67
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc9_24.3.temp), !dbg !68
// CHECK:STDOUT: call void @_Z13pass_unsignedhtjm.carbon_thunk.____(ptr @int_1.067, ptr @int_2.ec3, i32 3, i64 4), !dbg !69
// CHECK:STDOUT: call void @"_CSelfDestruct.3bc9e5dacf328f74:core.Destroy.Core"(ptr @int_2.ec3), !dbg !68
// CHECK:STDOUT: call void @"_CSelfDestruct.be60742f00557eec:core.Destroy.Core"(ptr @int_1.067), !dbg !67
// CHECK:STDOUT: ret void, !dbg !70
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress uwtable
@@ -148,30 +148,30 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: %.addr1 = alloca ptr, align 8
// CHECK:STDOUT: %.addr2 = alloca i32, align 4
// CHECK:STDOUT: %.addr3 = alloca i64, align 8
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !108
// CHECK:STDOUT: store ptr %1, ptr %.addr1, align 8, !tbaa !111
// CHECK:STDOUT: store i32 %2, ptr %.addr2, align 4, !tbaa !113
// CHECK:STDOUT: store i64 %3, ptr %.addr3, align 8, !tbaa !115
// CHECK:STDOUT: %4 = load ptr, ptr %.addr, align 8, !tbaa !108
// CHECK:STDOUT: %5 = load i8, ptr %4, align 1, !tbaa !116
// CHECK:STDOUT: %6 = load ptr, ptr %.addr1, align 8, !tbaa !111
// CHECK:STDOUT: %7 = load i16, ptr %6, align 2, !tbaa !117
// CHECK:STDOUT: %8 = load i32, ptr %.addr2, align 4, !tbaa !113
// CHECK:STDOUT: %9 = load i64, ptr %.addr3, align 8, !tbaa !115
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !110
// CHECK:STDOUT: store ptr %1, ptr %.addr1, align 8, !tbaa !113
// CHECK:STDOUT: store i32 %2, ptr %.addr2, align 4, !tbaa !115
// CHECK:STDOUT: store i64 %3, ptr %.addr3, align 8, !tbaa !117
// CHECK:STDOUT: %4 = load ptr, ptr %.addr, align 8, !tbaa !110
// CHECK:STDOUT: %5 = load i8, ptr %4, align 1, !tbaa !118
// CHECK:STDOUT: %6 = load ptr, ptr %.addr1, align 8, !tbaa !113
// CHECK:STDOUT: %7 = load i16, ptr %6, align 2, !tbaa !119
// CHECK:STDOUT: %8 = load i32, ptr %.addr2, align 4, !tbaa !115
// CHECK:STDOUT: %9 = load i64, ptr %.addr3, align 8, !tbaa !117
// CHECK:STDOUT: call void @_Z11pass_signedasil(i8 noundef signext %5, i16 noundef signext %7, i32 noundef %8, i64 noundef %9)
// CHECK:STDOUT: ret void
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %self) #0 !dbg !69 {
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %self) #0 !dbg !71 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: ret void, !dbg !71
// CHECK:STDOUT: ret void, !dbg !73
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.4954785a8b134801:core.Destroy.Core"(ptr %self) #0 !dbg !73 {
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.4954785a8b134801:core.Destroy.Core"(ptr %self) #0 !dbg !75 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: ret void, !dbg !75
// CHECK:STDOUT: ret void, !dbg !77
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress uwtable
@@ -181,70 +181,70 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: %.addr1 = alloca ptr, align 8
// CHECK:STDOUT: %.addr2 = alloca i32, align 4
// CHECK:STDOUT: %.addr3 = alloca i64, align 8
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !108
// CHECK:STDOUT: store ptr %1, ptr %.addr1, align 8, !tbaa !111
// CHECK:STDOUT: store i32 %2, ptr %.addr2, align 4, !tbaa !113
// CHECK:STDOUT: store i64 %3, ptr %.addr3, align 8, !tbaa !115
// CHECK:STDOUT: %4 = load ptr, ptr %.addr, align 8, !tbaa !108
// CHECK:STDOUT: %5 = load i8, ptr %4, align 1, !tbaa !116
// CHECK:STDOUT: %6 = load ptr, ptr %.addr1, align 8, !tbaa !111
// CHECK:STDOUT: %7 = load i16, ptr %6, align 2, !tbaa !117
// CHECK:STDOUT: %8 = load i32, ptr %.addr2, align 4, !tbaa !113
// CHECK:STDOUT: %9 = load i64, ptr %.addr3, align 8, !tbaa !115
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !110
// CHECK:STDOUT: store ptr %1, ptr %.addr1, align 8, !tbaa !113
// CHECK:STDOUT: store i32 %2, ptr %.addr2, align 4, !tbaa !115
// CHECK:STDOUT: store i64 %3, ptr %.addr3, align 8, !tbaa !117
// CHECK:STDOUT: %4 = load ptr, ptr %.addr, align 8, !tbaa !110
// CHECK:STDOUT: %5 = load i8, ptr %4, align 1, !tbaa !118
// CHECK:STDOUT: %6 = load ptr, ptr %.addr1, align 8, !tbaa !113
// CHECK:STDOUT: %7 = load i16, ptr %6, align 2, !tbaa !119
// CHECK:STDOUT: %8 = load i32, ptr %.addr2, align 4, !tbaa !115
// CHECK:STDOUT: %9 = load i64, ptr %.addr3, align 8, !tbaa !117
// CHECK:STDOUT: call void @_Z13pass_unsignedhtjm(i8 noundef zeroext %5, i16 noundef zeroext %7, i32 noundef %8, i64 noundef %9)
// CHECK:STDOUT: ret void
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.3bc9e5dacf328f74:core.Destroy.Core"(ptr %self) #0 !dbg !77 {
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.3bc9e5dacf328f74:core.Destroy.Core"(ptr %self) #0 !dbg !79 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: ret void, !dbg !79
// CHECK:STDOUT: ret void, !dbg !81
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.be60742f00557eec:core.Destroy.Core"(ptr %self) #0 !dbg !81 {
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.be60742f00557eec:core.Destroy.Core"(ptr %self) #0 !dbg !83 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: ret void, !dbg !83
// CHECK:STDOUT: ret void, !dbg !85
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: declare i16 @_CMakeShort.Main()
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define void @_CPassShort.Main(i16 %a, ptr %b) #0 !dbg !85 {
// CHECK:STDOUT: define void @_CPassShort.Main(i16 %a, ptr %b) #0 !dbg !87 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %.loc17_18.1.temp = alloca i16, align 2, !dbg !90
// CHECK:STDOUT: %.loc18_18.3.temp = alloca i16, align 2, !dbg !93
// CHECK:STDOUT: %.loc19_18.2.temp = alloca i16, align 2, !dbg !95
// CHECK:STDOUT: %.loc20_28.3.temp = alloca i16, align 2, !dbg !97
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc17_18.1.temp), !dbg !90
// CHECK:STDOUT: store i16 %a, ptr %.loc17_18.1.temp, align 2, !dbg !90
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc17_18.1.temp), !dbg !91
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc17_18.1.temp), !dbg !90
// CHECK:STDOUT: %.loc18_18.2 = load i16, ptr %b, align 2, !dbg !93
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc18_18.3.temp), !dbg !93
// CHECK:STDOUT: store i16 %.loc18_18.2, ptr %.loc18_18.3.temp, align 2, !dbg !93
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc18_18.3.temp), !dbg !94
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc18_18.3.temp), !dbg !93
// CHECK:STDOUT: %.loc19_18.1 = load i16, ptr @_Cc.Main, align 2, !dbg !95
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc19_18.2.temp), !dbg !95
// CHECK:STDOUT: store i16 %.loc19_18.1, ptr %.loc19_18.2.temp, align 2, !dbg !95
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc19_18.2.temp), !dbg !96
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc19_18.2.temp), !dbg !95
// CHECK:STDOUT: %MakeShort.call = call i16 @_CMakeShort.Main(), !dbg !97
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc20_28.3.temp), !dbg !97
// CHECK:STDOUT: store i16 %MakeShort.call, ptr %.loc20_28.3.temp, align 2, !dbg !97
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc20_28.3.temp), !dbg !98
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc20_28.3.temp), !dbg !97
// CHECK:STDOUT: ret void, !dbg !99
// CHECK:STDOUT: %.loc17_18.1.temp = alloca i16, align 2, !dbg !92
// CHECK:STDOUT: %.loc18_18.3.temp = alloca i16, align 2, !dbg !95
// CHECK:STDOUT: %.loc19_18.2.temp = alloca i16, align 2, !dbg !97
// CHECK:STDOUT: %.loc20_28.3.temp = alloca i16, align 2, !dbg !99
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc17_18.1.temp), !dbg !92
// CHECK:STDOUT: store i16 %a, ptr %.loc17_18.1.temp, align 2, !dbg !92
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc17_18.1.temp), !dbg !93
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc17_18.1.temp), !dbg !92
// CHECK:STDOUT: %.loc18_18.2 = load i16, ptr %b, align 2, !dbg !95
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc18_18.3.temp), !dbg !95
// CHECK:STDOUT: store i16 %.loc18_18.2, ptr %.loc18_18.3.temp, align 2, !dbg !95
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc18_18.3.temp), !dbg !96
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc18_18.3.temp), !dbg !95
// CHECK:STDOUT: %.loc19_18.1 = load i16, ptr @_Cc.Main, align 2, !dbg !97
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc19_18.2.temp), !dbg !97
// CHECK:STDOUT: store i16 %.loc19_18.1, ptr %.loc19_18.2.temp, align 2, !dbg !97
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc19_18.2.temp), !dbg !98
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc19_18.2.temp), !dbg !97
// CHECK:STDOUT: %MakeShort.call = call i16 @_CMakeShort.Main(), !dbg !99
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc20_28.3.temp), !dbg !99
// CHECK:STDOUT: store i16 %MakeShort.call, ptr %.loc20_28.3.temp, align 2, !dbg !99
// CHECK:STDOUT: call void @_Z10pass_shorts.carbon_thunk._(ptr %.loc20_28.3.temp), !dbg !100
// CHECK:STDOUT: call void @"_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core"(ptr %.loc20_28.3.temp), !dbg !99
// CHECK:STDOUT: ret void, !dbg !101
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress uwtable
// CHECK:STDOUT: define internal void @_Z10pass_shorts.carbon_thunk._(ptr noundef %0) #1 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %.addr = alloca ptr, align 8
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !111
// CHECK:STDOUT: %1 = load ptr, ptr %.addr, align 8, !tbaa !111
// CHECK:STDOUT: %2 = load i16, ptr %1, align 2, !tbaa !117
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !113
// CHECK:STDOUT: %1 = load ptr, ptr %.addr, align 8, !tbaa !113
// CHECK:STDOUT: %2 = load i16, ptr %1, align 2, !tbaa !119
// CHECK:STDOUT: call void @_Z10pass_shorts(i16 noundef signext %2)
// CHECK:STDOUT: ret void
// CHECK:STDOUT: }
@@ -253,10 +253,10 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: declare void @llvm.lifetime.start.p0(ptr captures(none)) #2
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define internal void @_C__global_init.Main() #0 !dbg !101 {
// CHECK:STDOUT: define internal void @_C__global_init.Main() #0 !dbg !103 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: store i16 poison, ptr @_Cc.Main, align 2, !dbg !102
// CHECK:STDOUT: ret void, !dbg !103
// CHECK:STDOUT: store i16 poison, ptr @_Cc.Main, align 2, !dbg !104
// CHECK:STDOUT: ret void, !dbg !105
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: declare void @_Z11pass_signedasil(i8 noundef signext, i16 noundef signext, i32 noundef, i64 noundef) #3
@@ -274,90 +274,90 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
// CHECK:STDOUT: attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
// CHECK:STDOUT:
// CHECK:STDOUT: !llvm.dbg.cu = !{!33}
// CHECK:STDOUT: !llvm.module.flags = !{!118, !119, !120, !2, !3}
// CHECK:STDOUT: !llvm.errno.tbaa = !{!122}
// CHECK:STDOUT: !llvm.dbg.cu = !{!35}
// CHECK:STDOUT: !llvm.module.flags = !{!120, !121, !122, !2, !3}
// CHECK:STDOUT: !llvm.errno.tbaa = !{!124}
// CHECK:STDOUT:
// CHECK:STDOUT: !2 = !{i32 7, !"Dwarf Version", i32 5}
// CHECK:STDOUT: !3 = !{i32 2, !"Debug Info Version", i32 3}
// CHECK:STDOUT: !8 = !DIBasicType(name: "int", size: 8, encoding: DW_ATE_unsigned)
// CHECK:STDOUT: !32 = !DIFile(filename: "import_ints.carbon", directory: "")
// CHECK:STDOUT: !33 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !32, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
// CHECK:STDOUT: !36 = !DIBasicType(name: "int", size: 8, encoding: DW_ATE_signed)
// CHECK:STDOUT: !37 = !DIBasicType(name: "int", size: 16, encoding: DW_ATE_signed)
// CHECK:STDOUT: !39 = !DIBasicType(name: "int", size: 16, encoding: DW_ATE_unsigned)
// CHECK:STDOUT: !40 = !{null}
// CHECK:STDOUT: !41 = !DISubroutineType(types: !40)
// CHECK:STDOUT: !42 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
// CHECK:STDOUT: !45 = !{null, !37}
// CHECK:STDOUT: !46 = !DISubroutineType(types: !45)
// CHECK:STDOUT: !47 = !{null, !36}
// CHECK:STDOUT: !10 = !DIBasicType(name: "int", size: 8, encoding: DW_ATE_unsigned)
// CHECK:STDOUT: !34 = !DIFile(filename: "import_ints.carbon", directory: "")
// CHECK:STDOUT: !35 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !34, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
// CHECK:STDOUT: !38 = !DIBasicType(name: "int", size: 8, encoding: DW_ATE_signed)
// CHECK:STDOUT: !39 = !DIBasicType(name: "int", size: 16, encoding: DW_ATE_signed)
// CHECK:STDOUT: !41 = !DIBasicType(name: "int", size: 16, encoding: DW_ATE_unsigned)
// CHECK:STDOUT: !42 = !{null}
// CHECK:STDOUT: !43 = !DISubroutineType(types: !42)
// CHECK:STDOUT: !44 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
// CHECK:STDOUT: !47 = !{null, !39}
// CHECK:STDOUT: !48 = !DISubroutineType(types: !47)
// CHECK:STDOUT: !51 = !{null, !39}
// CHECK:STDOUT: !52 = !DISubroutineType(types: !51)
// CHECK:STDOUT: !53 = !{null, !8}
// CHECK:STDOUT: !49 = !{null, !38}
// CHECK:STDOUT: !50 = !DISubroutineType(types: !49)
// CHECK:STDOUT: !53 = !{null, !41}
// CHECK:STDOUT: !54 = !DISubroutineType(types: !53)
// CHECK:STDOUT: !57 = !{null, !37, !42}
// CHECK:STDOUT: !58 = !DISubroutineType(types: !57)
// CHECK:STDOUT: !61 = distinct !DISubprogram(name: "MyF", linkageName: "_CMyF.Main", scope: null, file: !32, line: 6, type: !41, spFlags: DISPFlagDefinition, unit: !33)
// CHECK:STDOUT: !62 = !DILocation(line: 7, column: 19, scope: !61)
// CHECK:STDOUT: !63 = !DILocation(line: 7, column: 22, scope: !61)
// CHECK:STDOUT: !64 = !DILocation(line: 7, column: 3, scope: !61)
// CHECK:STDOUT: !65 = !DILocation(line: 9, column: 21, scope: !61)
// CHECK:STDOUT: !66 = !DILocation(line: 9, column: 24, scope: !61)
// CHECK:STDOUT: !67 = !DILocation(line: 9, column: 3, scope: !61)
// CHECK:STDOUT: !68 = !DILocation(line: 6, column: 1, scope: !61)
// CHECK:STDOUT: !69 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core", scope: null, file: !32, line: 7, type: !46, spFlags: DISPFlagDefinition, unit: !33, retainedNodes: !72)
// CHECK:STDOUT: !70 = !DILocalVariable(arg: 1, scope: !69, type: !37)
// CHECK:STDOUT: !71 = !DILocation(line: 7, column: 22, scope: !69)
// CHECK:STDOUT: !72 = !{!70}
// CHECK:STDOUT: !73 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.4954785a8b134801:core.Destroy.Core", scope: null, file: !32, line: 7, type: !48, spFlags: DISPFlagDefinition, unit: !33, retainedNodes: !76)
// CHECK:STDOUT: !74 = !DILocalVariable(arg: 1, scope: !73, type: !36)
// CHECK:STDOUT: !75 = !DILocation(line: 7, column: 19, scope: !73)
// CHECK:STDOUT: !76 = !{!74}
// CHECK:STDOUT: !77 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.3bc9e5dacf328f74:core.Destroy.Core", scope: null, file: !32, line: 9, type: !52, spFlags: DISPFlagDefinition, unit: !33, retainedNodes: !80)
// CHECK:STDOUT: !78 = !DILocalVariable(arg: 1, scope: !77, type: !39)
// CHECK:STDOUT: !79 = !DILocation(line: 9, column: 24, scope: !77)
// CHECK:STDOUT: !80 = !{!78}
// CHECK:STDOUT: !81 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.be60742f00557eec:core.Destroy.Core", scope: null, file: !32, line: 9, type: !54, spFlags: DISPFlagDefinition, unit: !33, retainedNodes: !84)
// CHECK:STDOUT: !82 = !DILocalVariable(arg: 1, scope: !81, type: !8)
// CHECK:STDOUT: !83 = !DILocation(line: 9, column: 21, scope: !81)
// CHECK:STDOUT: !84 = !{!82}
// CHECK:STDOUT: !85 = distinct !DISubprogram(name: "PassShort", linkageName: "_CPassShort.Main", scope: null, file: !32, line: 16, type: !58, spFlags: DISPFlagDefinition, unit: !33, retainedNodes: !100)
// CHECK:STDOUT: !86 = !DILocalVariable(arg: 1, scope: !85, type: !37)
// CHECK:STDOUT: !87 = !DILocalVariable(arg: 2, scope: !85, type: !42)
// CHECK:STDOUT: !90 = !DILocation(line: 17, column: 18, scope: !85)
// CHECK:STDOUT: !91 = !DILocation(line: 17, column: 3, scope: !85)
// CHECK:STDOUT: !93 = !DILocation(line: 18, column: 18, scope: !85)
// CHECK:STDOUT: !94 = !DILocation(line: 18, column: 3, scope: !85)
// CHECK:STDOUT: !95 = !DILocation(line: 19, column: 18, scope: !85)
// CHECK:STDOUT: !96 = !DILocation(line: 19, column: 3, scope: !85)
// CHECK:STDOUT: !97 = !DILocation(line: 20, column: 18, scope: !85)
// CHECK:STDOUT: !98 = !DILocation(line: 20, column: 3, scope: !85)
// CHECK:STDOUT: !99 = !DILocation(line: 16, column: 1, scope: !85)
// CHECK:STDOUT: !100 = !{!86, !87}
// CHECK:STDOUT: !101 = distinct !DISubprogram(name: "__global_init", linkageName: "_C__global_init.Main", scope: null, file: !32, type: !41, spFlags: DISPFlagDefinition, unit: !33)
// CHECK:STDOUT: !102 = !DILocation(line: 14, column: 1, scope: !101)
// CHECK:STDOUT: !103 = !DILocation(line: 0, scope: !101)
// CHECK:STDOUT: !104 = !{!"Simple C++ TBAA"}
// CHECK:STDOUT: !105 = !{!"omnipotent char", !104, i64 0}
// CHECK:STDOUT: !106 = !{!"any pointer", !105, i64 0}
// CHECK:STDOUT: !107 = !{!"p1 omnipotent char", !106, i64 0}
// CHECK:STDOUT: !108 = !{!107, !107, i64 0}
// CHECK:STDOUT: !109 = !{!"short", !105, i64 0}
// CHECK:STDOUT: !110 = !{!"p1 short", !106, i64 0}
// CHECK:STDOUT: !111 = !{!110, !110, i64 0}
// CHECK:STDOUT: !112 = !{!"int", !105, i64 0}
// CHECK:STDOUT: !55 = !{null, !10}
// CHECK:STDOUT: !56 = !DISubroutineType(types: !55)
// CHECK:STDOUT: !59 = !{null, !39, !44}
// CHECK:STDOUT: !60 = !DISubroutineType(types: !59)
// CHECK:STDOUT: !63 = distinct !DISubprogram(name: "MyF", linkageName: "_CMyF.Main", scope: null, file: !34, line: 6, type: !43, spFlags: DISPFlagDefinition, unit: !35)
// CHECK:STDOUT: !64 = !DILocation(line: 7, column: 19, scope: !63)
// CHECK:STDOUT: !65 = !DILocation(line: 7, column: 22, scope: !63)
// CHECK:STDOUT: !66 = !DILocation(line: 7, column: 3, scope: !63)
// CHECK:STDOUT: !67 = !DILocation(line: 9, column: 21, scope: !63)
// CHECK:STDOUT: !68 = !DILocation(line: 9, column: 24, scope: !63)
// CHECK:STDOUT: !69 = !DILocation(line: 9, column: 3, scope: !63)
// CHECK:STDOUT: !70 = !DILocation(line: 6, column: 1, scope: !63)
// CHECK:STDOUT: !71 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.d57cb32fcf12ec07:core.Destroy.Core", scope: null, file: !34, line: 7, type: !48, spFlags: DISPFlagDefinition, unit: !35, retainedNodes: !74)
// CHECK:STDOUT: !72 = !DILocalVariable(arg: 1, scope: !71, type: !39)
// CHECK:STDOUT: !73 = !DILocation(line: 7, column: 22, scope: !71)
// CHECK:STDOUT: !74 = !{!72}
// CHECK:STDOUT: !75 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.4954785a8b134801:core.Destroy.Core", scope: null, file: !34, line: 7, type: !50, spFlags: DISPFlagDefinition, unit: !35, retainedNodes: !78)
// CHECK:STDOUT: !76 = !DILocalVariable(arg: 1, scope: !75, type: !38)
// CHECK:STDOUT: !77 = !DILocation(line: 7, column: 19, scope: !75)
// CHECK:STDOUT: !78 = !{!76}
// CHECK:STDOUT: !79 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.3bc9e5dacf328f74:core.Destroy.Core", scope: null, file: !34, line: 9, type: !54, spFlags: DISPFlagDefinition, unit: !35, retainedNodes: !82)
// CHECK:STDOUT: !80 = !DILocalVariable(arg: 1, scope: !79, type: !41)
// CHECK:STDOUT: !81 = !DILocation(line: 9, column: 24, scope: !79)
// CHECK:STDOUT: !82 = !{!80}
// CHECK:STDOUT: !83 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.be60742f00557eec:core.Destroy.Core", scope: null, file: !34, line: 9, type: !56, spFlags: DISPFlagDefinition, unit: !35, retainedNodes: !86)
// CHECK:STDOUT: !84 = !DILocalVariable(arg: 1, scope: !83, type: !10)
// CHECK:STDOUT: !85 = !DILocation(line: 9, column: 21, scope: !83)
// CHECK:STDOUT: !86 = !{!84}
// CHECK:STDOUT: !87 = distinct !DISubprogram(name: "PassShort", linkageName: "_CPassShort.Main", scope: null, file: !34, line: 16, type: !60, spFlags: DISPFlagDefinition, unit: !35, retainedNodes: !102)
// CHECK:STDOUT: !88 = !DILocalVariable(arg: 1, scope: !87, type: !39)
// CHECK:STDOUT: !89 = !DILocalVariable(arg: 2, scope: !87, type: !44)
// CHECK:STDOUT: !92 = !DILocation(line: 17, column: 18, scope: !87)
// CHECK:STDOUT: !93 = !DILocation(line: 17, column: 3, scope: !87)
// CHECK:STDOUT: !95 = !DILocation(line: 18, column: 18, scope: !87)
// CHECK:STDOUT: !96 = !DILocation(line: 18, column: 3, scope: !87)
// CHECK:STDOUT: !97 = !DILocation(line: 19, column: 18, scope: !87)
// CHECK:STDOUT: !98 = !DILocation(line: 19, column: 3, scope: !87)
// CHECK:STDOUT: !99 = !DILocation(line: 20, column: 18, scope: !87)
// CHECK:STDOUT: !100 = !DILocation(line: 20, column: 3, scope: !87)
// CHECK:STDOUT: !101 = !DILocation(line: 16, column: 1, scope: !87)
// CHECK:STDOUT: !102 = !{!88, !89}
// CHECK:STDOUT: !103 = distinct !DISubprogram(name: "__global_init", linkageName: "_C__global_init.Main", scope: null, file: !34, type: !43, spFlags: DISPFlagDefinition, unit: !35)
// CHECK:STDOUT: !104 = !DILocation(line: 14, column: 1, scope: !103)
// CHECK:STDOUT: !105 = !DILocation(line: 0, scope: !103)
// CHECK:STDOUT: !106 = !{!"Simple C++ TBAA"}
// CHECK:STDOUT: !107 = !{!"omnipotent char", !106, i64 0}
// CHECK:STDOUT: !108 = !{!"any pointer", !107, i64 0}
// CHECK:STDOUT: !109 = !{!"p1 omnipotent char", !108, i64 0}
// CHECK:STDOUT: !110 = !{!109, !109, i64 0}
// CHECK:STDOUT: !111 = !{!"short", !107, i64 0}
// CHECK:STDOUT: !112 = !{!"p1 short", !108, i64 0}
// CHECK:STDOUT: !113 = !{!112, !112, i64 0}
// CHECK:STDOUT: !114 = !{!"long", !105, i64 0}
// CHECK:STDOUT: !114 = !{!"int", !107, i64 0}
// CHECK:STDOUT: !115 = !{!114, !114, i64 0}
// CHECK:STDOUT: !116 = !{!105, !105, i64 0}
// CHECK:STDOUT: !117 = !{!109, !109, i64 0}
// CHECK:STDOUT: !118 = !{i32 8, !"PIC Level", i32 2}
// CHECK:STDOUT: !119 = !{i32 7, !"PIE Level", i32 2}
// CHECK:STDOUT: !120 = !{i32 7, !"uwtable", i32 2}
// CHECK:STDOUT: !121 = !{!"__libc_errno", !112, i64 0}
// CHECK:STDOUT: !122 = !{!121, !112, i64 0}
// CHECK:STDOUT: !116 = !{!"long", !107, i64 0}
// CHECK:STDOUT: !117 = !{!116, !116, i64 0}
// CHECK:STDOUT: !118 = !{!107, !107, i64 0}
// CHECK:STDOUT: !119 = !{!111, !111, i64 0}
// CHECK:STDOUT: !120 = !{i32 8, !"PIC Level", i32 2}
// CHECK:STDOUT: !121 = !{i32 7, !"PIE Level", i32 2}
// CHECK:STDOUT: !122 = !{i32 7, !"uwtable", i32 2}
// CHECK:STDOUT: !123 = !{!"__libc_errno", !114, i64 0}
// CHECK:STDOUT: !124 = !{!123, !114, i64 0}
// CHECK:STDOUT:
// CHECK:STDOUT: ; ---
// CHECK:STDOUT: ; ModuleID = 'import_struct.carbon'
@@ -368,36 +368,36 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: %struct.X = type { i32, i32, i32 }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define void @_CTest.Main() #0 !dbg !127 {
// CHECK:STDOUT: define void @_CTest.Main() #0 !dbg !129 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %x.var = alloca [12 x i8], align 4, !dbg !128
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %x.var), !dbg !128
// CHECK:STDOUT: call void @"_COp.51f3fb62cb986374:DefaultOrUnformed.Core.102476b7ae87d0a1"(ptr %x.var), !dbg !128
// CHECK:STDOUT: %.loc8_4.a = getelementptr inbounds nuw [12 x i8], ptr %x.var, i32 0, i32 0, !dbg !130
// CHECK:STDOUT: store i32 1, ptr %.loc8_4.a, align 4, !dbg !130
// CHECK:STDOUT: %.loc9_4.b = getelementptr inbounds nuw [12 x i8], ptr %x.var, i32 0, i32 4, !dbg !131
// CHECK:STDOUT: store i32 2, ptr %.loc9_4.b, align 4, !dbg !131
// CHECK:STDOUT: %.loc10_4.c = getelementptr inbounds nuw [12 x i8], ptr %x.var, i32 0, i32 8, !dbg !132
// CHECK:STDOUT: store i32 3, ptr %.loc10_4.c, align 4, !dbg !132
// CHECK:STDOUT: call void @_Z11pass_struct1X.carbon_thunk._(ptr %x.var), !dbg !134
// CHECK:STDOUT: call void @"_CSelfDestruct.3d7b8a41b4c67e71:core.Destroy.Core"(ptr %x.var), !dbg !128
// CHECK:STDOUT: ret void, !dbg !135
// CHECK:STDOUT: %x.var = alloca [12 x i8], align 4, !dbg !130
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %x.var), !dbg !130
// CHECK:STDOUT: call void @"_COp.51f3fb62cb986374:DefaultOrUnformed.Core.102476b7ae87d0a1"(ptr %x.var), !dbg !130
// CHECK:STDOUT: %.loc8_4.a = getelementptr inbounds nuw [12 x i8], ptr %x.var, i32 0, i32 0, !dbg !132
// CHECK:STDOUT: store i32 1, ptr %.loc8_4.a, align 4, !dbg !132
// CHECK:STDOUT: %.loc9_4.b = getelementptr inbounds nuw [12 x i8], ptr %x.var, i32 0, i32 4, !dbg !133
// CHECK:STDOUT: store i32 2, ptr %.loc9_4.b, align 4, !dbg !133
// CHECK:STDOUT: %.loc10_4.c = getelementptr inbounds nuw [12 x i8], ptr %x.var, i32 0, i32 8, !dbg !134
// CHECK:STDOUT: store i32 3, ptr %.loc10_4.c, align 4, !dbg !134
// CHECK:STDOUT: call void @_Z11pass_struct1X.carbon_thunk._(ptr %x.var), !dbg !136
// CHECK:STDOUT: call void @"_CSelfDestruct.3d7b8a41b4c67e71:core.Destroy.Core"(ptr %x.var), !dbg !130
// CHECK:STDOUT: ret void, !dbg !137
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress nounwind uwtable
// CHECK:STDOUT: define internal void @_ZN1XC1Ev.carbon_thunk.(ptr noundef %return) #1 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %return.addr = alloca ptr, align 8
// CHECK:STDOUT: store ptr %return, ptr %return.addr, align 8, !tbaa !149
// CHECK:STDOUT: %0 = load ptr, ptr %return.addr, align 8, !tbaa !149
// CHECK:STDOUT: store ptr %return, ptr %return.addr, align 8, !tbaa !151
// CHECK:STDOUT: %0 = load ptr, ptr %return.addr, align 8, !tbaa !151
// CHECK:STDOUT: ret void
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: alwaysinline nounwind
// CHECK:STDOUT: define weak_odr void @"_COp:thunk:Default.eed9ddf3aaac414a.Core:X.Cpp"(ptr sret([12 x i8]) %return) #2 !dbg !137 {
// CHECK:STDOUT: define weak_odr void @"_COp:thunk:Default.eed9ddf3aaac414a.Core:X.Cpp"(ptr sret([12 x i8]) %return) #2 !dbg !139 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: call void @_ZN1XC1Ev.carbon_thunk.(ptr %return), !dbg !138
// CHECK:STDOUT: ret void, !dbg !138
// CHECK:STDOUT: call void @_ZN1XC1Ev.carbon_thunk.(ptr %return), !dbg !140
// CHECK:STDOUT: ret void, !dbg !140
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress uwtable
@@ -406,9 +406,9 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: %.addr = alloca ptr, align 8
// CHECK:STDOUT: %agg.tmp = alloca %struct.X, align 4
// CHECK:STDOUT: %agg.tmp.coerce = alloca { i64, i32 }, align 4
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !149
// CHECK:STDOUT: %1 = load ptr, ptr %.addr, align 8, !tbaa !149
// CHECK:STDOUT: call void @llvm.memcpy.p0.p0.i64(ptr align 4 %agg.tmp, ptr align 4 %1, i64 12, i1 false), !tbaa.struct !151
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !151
// CHECK:STDOUT: %1 = load ptr, ptr %.addr, align 8, !tbaa !151
// CHECK:STDOUT: call void @llvm.memcpy.p0.p0.i64(ptr align 4 %agg.tmp, ptr align 4 %1, i64 12, i1 false), !tbaa.struct !153
// CHECK:STDOUT: call void @llvm.memcpy.p0.p0.i64(ptr align 4 %agg.tmp.coerce, ptr align 4 %agg.tmp, i64 12, i1 false)
// CHECK:STDOUT: %2 = getelementptr inbounds nuw { i64, i32 }, ptr %agg.tmp.coerce, i32 0, i32 0
// CHECK:STDOUT: %3 = load i64, ptr %2, align 4
@@ -419,18 +419,18 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.3d7b8a41b4c67e71:core.Destroy.Core"(ptr %self) #0 !dbg !139 {
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.3d7b8a41b4c67e71:core.Destroy.Core"(ptr %self) #0 !dbg !141 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: ret void, !dbg !141
// CHECK:STDOUT: ret void, !dbg !143
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
// CHECK:STDOUT: declare void @llvm.lifetime.start.p0(ptr captures(none)) #4
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define linkonce_odr void @"_COp.51f3fb62cb986374:DefaultOrUnformed.Core.102476b7ae87d0a1"(ptr sret([12 x i8]) %return) #0 !dbg !143 {
// CHECK:STDOUT: call void @"_COp:thunk:Default.eed9ddf3aaac414a.Core:X.Cpp"(ptr %return), !dbg !146
// CHECK:STDOUT: ret void, !dbg !147
// CHECK:STDOUT: define linkonce_odr void @"_COp.51f3fb62cb986374:DefaultOrUnformed.Core.102476b7ae87d0a1"(ptr sret([12 x i8]) %return) #0 !dbg !145 {
// CHECK:STDOUT: call void @"_COp:thunk:Default.eed9ddf3aaac414a.Core:X.Cpp"(ptr %return), !dbg !148
// CHECK:STDOUT: ret void, !dbg !149
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: declare void @_Z11pass_struct1X(i64, i32) #5
@@ -448,52 +448,52 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
// CHECK:STDOUT: attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
// CHECK:STDOUT:
// CHECK:STDOUT: !llvm.dbg.cu = !{!124}
// CHECK:STDOUT: !llvm.module.flags = !{!118, !119, !120, !2, !3}
// CHECK:STDOUT: !llvm.errno.tbaa = !{!122}
// CHECK:STDOUT: !llvm.dbg.cu = !{!126}
// CHECK:STDOUT: !llvm.module.flags = !{!120, !121, !122, !2, !3}
// CHECK:STDOUT: !llvm.errno.tbaa = !{!124}
// CHECK:STDOUT:
// CHECK:STDOUT: !2 = !{i32 7, !"Dwarf Version", i32 5}
// CHECK:STDOUT: !3 = !{i32 2, !"Debug Info Version", i32 3}
// CHECK:STDOUT: !26 = !DIFile(filename: "min_prelude/parts/default.carbon", directory: "")
// CHECK:STDOUT: !40 = !{null}
// CHECK:STDOUT: !41 = !DISubroutineType(types: !40)
// CHECK:STDOUT: !42 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
// CHECK:STDOUT: !59 = !{null, !42}
// CHECK:STDOUT: !60 = !DISubroutineType(types: !59)
// CHECK:STDOUT: !104 = !{!"Simple C++ TBAA"}
// CHECK:STDOUT: !105 = !{!"omnipotent char", !104, i64 0}
// CHECK:STDOUT: !106 = !{!"any pointer", !105, i64 0}
// CHECK:STDOUT: !112 = !{!"int", !105, i64 0}
// CHECK:STDOUT: !113 = !{!112, !112, i64 0}
// CHECK:STDOUT: !118 = !{i32 8, !"PIC Level", i32 2}
// CHECK:STDOUT: !119 = !{i32 7, !"PIE Level", i32 2}
// CHECK:STDOUT: !120 = !{i32 7, !"uwtable", i32 2}
// CHECK:STDOUT: !121 = !{!"__libc_errno", !112, i64 0}
// CHECK:STDOUT: !122 = !{!121, !112, i64 0}
// CHECK:STDOUT: !123 = !DIFile(filename: "import_struct.carbon", directory: "")
// CHECK:STDOUT: !124 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !123, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
// CHECK:STDOUT: !125 = !{!42}
// CHECK:STDOUT: !126 = !DISubroutineType(types: !125)
// CHECK:STDOUT: !127 = distinct !DISubprogram(name: "Test", linkageName: "_CTest.Main", scope: null, file: !123, line: 6, type: !41, spFlags: DISPFlagDefinition, unit: !124)
// CHECK:STDOUT: !128 = !DILocation(line: 7, column: 3, scope: !127)
// CHECK:STDOUT: !130 = !DILocation(line: 8, column: 3, scope: !127)
// CHECK:STDOUT: !131 = !DILocation(line: 9, column: 3, scope: !127)
// CHECK:STDOUT: !132 = !DILocation(line: 10, column: 3, scope: !127)
// CHECK:STDOUT: !134 = !DILocation(line: 11, column: 3, scope: !127)
// CHECK:STDOUT: !135 = !DILocation(line: 6, column: 1, scope: !127)
// CHECK:STDOUT: !136 = !DIFile(filename: "./struct.h", directory: "")
// CHECK:STDOUT: !137 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:Default.eed9ddf3aaac414a.Core:X.Cpp", scope: null, file: !136, line: 2, type: !126, spFlags: DISPFlagDefinition, unit: !124)
// CHECK:STDOUT: !138 = !DILocation(line: 2, column: 8, scope: !137)
// CHECK:STDOUT: !139 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.3d7b8a41b4c67e71:core.Destroy.Core", scope: null, file: !123, line: 7, type: !60, spFlags: DISPFlagDefinition, unit: !124, retainedNodes: !142)
// CHECK:STDOUT: !140 = !DILocalVariable(arg: 1, scope: !139, type: !42)
// CHECK:STDOUT: !141 = !DILocation(line: 7, column: 3, scope: !139)
// CHECK:STDOUT: !142 = !{!140}
// CHECK:STDOUT: !143 = distinct !DISubprogram(name: "Op", linkageName: "_COp.51f3fb62cb986374:DefaultOrUnformed.Core.102476b7ae87d0a1", scope: null, file: !26, line: 9, type: !126, spFlags: DISPFlagDefinition, unit: !124)
// CHECK:STDOUT: !146 = !DILocation(line: 9, column: 28, scope: !143)
// CHECK:STDOUT: !147 = !DILocation(line: 9, column: 21, scope: !143)
// CHECK:STDOUT: !148 = !{!"p1 _ZTS1X", !106, i64 0}
// CHECK:STDOUT: !149 = !{!148, !148, i64 0}
// CHECK:STDOUT: !151 = !{i64 0, i64 4, !113, i64 4, i64 4, !113, i64 8, i64 4, !113}
// CHECK:STDOUT: !28 = !DIFile(filename: "min_prelude/parts/default.carbon", directory: "")
// CHECK:STDOUT: !42 = !{null}
// CHECK:STDOUT: !43 = !DISubroutineType(types: !42)
// CHECK:STDOUT: !44 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
// CHECK:STDOUT: !61 = !{null, !44}
// CHECK:STDOUT: !62 = !DISubroutineType(types: !61)
// CHECK:STDOUT: !106 = !{!"Simple C++ TBAA"}
// CHECK:STDOUT: !107 = !{!"omnipotent char", !106, i64 0}
// CHECK:STDOUT: !108 = !{!"any pointer", !107, i64 0}
// CHECK:STDOUT: !114 = !{!"int", !107, i64 0}
// CHECK:STDOUT: !115 = !{!114, !114, i64 0}
// CHECK:STDOUT: !120 = !{i32 8, !"PIC Level", i32 2}
// CHECK:STDOUT: !121 = !{i32 7, !"PIE Level", i32 2}
// CHECK:STDOUT: !122 = !{i32 7, !"uwtable", i32 2}
// CHECK:STDOUT: !123 = !{!"__libc_errno", !114, i64 0}
// CHECK:STDOUT: !124 = !{!123, !114, i64 0}
// CHECK:STDOUT: !125 = !DIFile(filename: "import_struct.carbon", directory: "")
// CHECK:STDOUT: !126 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !125, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
// CHECK:STDOUT: !127 = !{!44}
// CHECK:STDOUT: !128 = !DISubroutineType(types: !127)
// CHECK:STDOUT: !129 = distinct !DISubprogram(name: "Test", linkageName: "_CTest.Main", scope: null, file: !125, line: 6, type: !43, spFlags: DISPFlagDefinition, unit: !126)
// CHECK:STDOUT: !130 = !DILocation(line: 7, column: 3, scope: !129)
// CHECK:STDOUT: !132 = !DILocation(line: 8, column: 3, scope: !129)
// CHECK:STDOUT: !133 = !DILocation(line: 9, column: 3, scope: !129)
// CHECK:STDOUT: !134 = !DILocation(line: 10, column: 3, scope: !129)
// CHECK:STDOUT: !136 = !DILocation(line: 11, column: 3, scope: !129)
// CHECK:STDOUT: !137 = !DILocation(line: 6, column: 1, scope: !129)
// CHECK:STDOUT: !138 = !DIFile(filename: "./struct.h", directory: "")
// CHECK:STDOUT: !139 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:Default.eed9ddf3aaac414a.Core:X.Cpp", scope: null, file: !138, line: 2, type: !128, spFlags: DISPFlagDefinition, unit: !126)
// CHECK:STDOUT: !140 = !DILocation(line: 2, column: 8, scope: !139)
// CHECK:STDOUT: !141 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.3d7b8a41b4c67e71:core.Destroy.Core", scope: null, file: !125, line: 7, type: !62, spFlags: DISPFlagDefinition, unit: !126, retainedNodes: !144)
// CHECK:STDOUT: !142 = !DILocalVariable(arg: 1, scope: !141, type: !44)
// CHECK:STDOUT: !143 = !DILocation(line: 7, column: 3, scope: !141)
// CHECK:STDOUT: !144 = !{!142}
// CHECK:STDOUT: !145 = distinct !DISubprogram(name: "Op", linkageName: "_COp.51f3fb62cb986374:DefaultOrUnformed.Core.102476b7ae87d0a1", scope: null, file: !28, line: 9, type: !128, spFlags: DISPFlagDefinition, unit: !126)
// CHECK:STDOUT: !148 = !DILocation(line: 9, column: 28, scope: !145)
// CHECK:STDOUT: !149 = !DILocation(line: 9, column: 21, scope: !145)
// CHECK:STDOUT: !150 = !{!"p1 _ZTS1X", !108, i64 0}
// CHECK:STDOUT: !151 = !{!150, !150, i64 0}
// CHECK:STDOUT: !153 = !{i64 0, i64 4, !115, i64 4, i64 4, !115, i64 8, i64 4, !115}
// CHECK:STDOUT:
// CHECK:STDOUT: ; ---
// CHECK:STDOUT: ; ModuleID = 'import_class_with_nontrivial_copy.carbon'
@@ -504,19 +504,19 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: %class.Y = type { i32, i32, i32 }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define void @_CPassRefExpr.Main() #0 !dbg !154 {
// CHECK:STDOUT: define void @_CPassRefExpr.Main() #0 !dbg !156 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %y.var = alloca [12 x i8], align 4, !dbg !155
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %y.var), !dbg !155
// CHECK:STDOUT: %.loc8_4.a = getelementptr inbounds nuw [12 x i8], ptr %y.var, i32 0, i32 0, !dbg !157
// CHECK:STDOUT: store i32 1, ptr %.loc8_4.a, align 4, !dbg !157
// CHECK:STDOUT: %.loc9_4.b = getelementptr inbounds nuw [12 x i8], ptr %y.var, i32 0, i32 4, !dbg !158
// CHECK:STDOUT: store i32 2, ptr %.loc9_4.b, align 4, !dbg !158
// CHECK:STDOUT: %.loc10_4.c = getelementptr inbounds nuw [12 x i8], ptr %y.var, i32 0, i32 8, !dbg !159
// CHECK:STDOUT: store i32 3, ptr %.loc10_4.c, align 4, !dbg !159
// CHECK:STDOUT: call void @_Z11pass_struct1Y.carbon_thunk._(ptr %y.var), !dbg !161
// CHECK:STDOUT: call void @"_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core"(ptr %y.var), !dbg !155
// CHECK:STDOUT: ret void, !dbg !162
// CHECK:STDOUT: %y.var = alloca [12 x i8], align 4, !dbg !157
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %y.var), !dbg !157
// CHECK:STDOUT: %.loc8_4.a = getelementptr inbounds nuw [12 x i8], ptr %y.var, i32 0, i32 0, !dbg !159
// CHECK:STDOUT: store i32 1, ptr %.loc8_4.a, align 4, !dbg !159
// CHECK:STDOUT: %.loc9_4.b = getelementptr inbounds nuw [12 x i8], ptr %y.var, i32 0, i32 4, !dbg !160
// CHECK:STDOUT: store i32 2, ptr %.loc9_4.b, align 4, !dbg !160
// CHECK:STDOUT: %.loc10_4.c = getelementptr inbounds nuw [12 x i8], ptr %y.var, i32 0, i32 8, !dbg !161
// CHECK:STDOUT: store i32 3, ptr %.loc10_4.c, align 4, !dbg !161
// CHECK:STDOUT: call void @_Z11pass_struct1Y.carbon_thunk._(ptr %y.var), !dbg !163
// CHECK:STDOUT: call void @"_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core"(ptr %y.var), !dbg !157
// CHECK:STDOUT: ret void, !dbg !164
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress uwtable
@@ -524,37 +524,37 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %.addr = alloca ptr, align 8
// CHECK:STDOUT: %agg.tmp = alloca %class.Y, align 4
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !179
// CHECK:STDOUT: %1 = load ptr, ptr %.addr, align 8, !tbaa !179
// CHECK:STDOUT: store ptr %0, ptr %.addr, align 8, !tbaa !181
// CHECK:STDOUT: %1 = load ptr, ptr %.addr, align 8, !tbaa !181
// CHECK:STDOUT: call void @_ZN1YC1ERKS_(ptr noundef nonnull align 4 dereferenceable(12) %agg.tmp, ptr noundef nonnull align 4 dereferenceable(12) %1)
// CHECK:STDOUT: call void @_Z11pass_struct1Y(ptr nofreeobj noundef align 4 dead_on_return dereferenceable(12) %agg.tmp)
// CHECK:STDOUT: ret void
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core"(ptr %self) #0 !dbg !163 {
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core"(ptr %self) #0 !dbg !165 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: ret void, !dbg !165
// CHECK:STDOUT: ret void, !dbg !167
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: declare void @_CMake.Main(ptr sret([12 x i8]))
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define void @_CPassInitExpr.Main() #0 !dbg !167 {
// CHECK:STDOUT: define void @_CPassInitExpr.Main() #0 !dbg !169 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: %.loc17_24.1.temp = alloca [12 x i8], align 4, !dbg !168
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc17_24.1.temp), !dbg !168
// CHECK:STDOUT: call void @_CMake.Main(ptr %.loc17_24.1.temp), !dbg !168
// CHECK:STDOUT: call void @_Z11pass_struct1Y.carbon_thunk._(ptr %.loc17_24.1.temp), !dbg !169
// CHECK:STDOUT: call void @"_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core"(ptr %.loc17_24.1.temp), !dbg !168
// CHECK:STDOUT: ret void, !dbg !170
// CHECK:STDOUT: %.loc17_24.1.temp = alloca [12 x i8], align 4, !dbg !170
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc17_24.1.temp), !dbg !170
// CHECK:STDOUT: call void @_CMake.Main(ptr %.loc17_24.1.temp), !dbg !170
// CHECK:STDOUT: call void @_Z11pass_struct1Y.carbon_thunk._(ptr %.loc17_24.1.temp), !dbg !171
// CHECK:STDOUT: call void @"_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core"(ptr %.loc17_24.1.temp), !dbg !170
// CHECK:STDOUT: ret void, !dbg !172
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nounwind
// CHECK:STDOUT: define void @_CPassValueExpr.Main(ptr %y) #0 !dbg !171 {
// CHECK:STDOUT: define void @_CPassValueExpr.Main(ptr %y) #0 !dbg !173 {
// CHECK:STDOUT: entry:
// CHECK:STDOUT: call void @_Z11pass_struct1Y.carbon_thunk._(ptr %y), !dbg !175
// CHECK:STDOUT: ret void, !dbg !176
// CHECK:STDOUT: call void @_Z11pass_struct1Y.carbon_thunk._(ptr %y), !dbg !177
// CHECK:STDOUT: ret void, !dbg !178
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
@@ -572,48 +572,48 @@ fn PassValueExpr(y: Cpp.Y) {
// CHECK:STDOUT: attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
// CHECK:STDOUT: attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
// CHECK:STDOUT:
// CHECK:STDOUT: !llvm.dbg.cu = !{!153}
// CHECK:STDOUT: !llvm.module.flags = !{!118, !119, !120, !2, !3}
// CHECK:STDOUT: !llvm.errno.tbaa = !{!122}
// CHECK:STDOUT: !llvm.dbg.cu = !{!155}
// CHECK:STDOUT: !llvm.module.flags = !{!120, !121, !122, !2, !3}
// CHECK:STDOUT: !llvm.errno.tbaa = !{!124}
// CHECK:STDOUT:
// CHECK:STDOUT: !2 = !{i32 7, !"Dwarf Version", i32 5}
// CHECK:STDOUT: !3 = !{i32 2, !"Debug Info Version", i32 3}
// CHECK:STDOUT: !40 = !{null}
// CHECK:STDOUT: !41 = !DISubroutineType(types: !40)
// CHECK:STDOUT: !42 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
// CHECK:STDOUT: !59 = !{null, !42}
// CHECK:STDOUT: !60 = !DISubroutineType(types: !59)
// CHECK:STDOUT: !104 = !{!"Simple C++ TBAA"}
// CHECK:STDOUT: !105 = !{!"omnipotent char", !104, i64 0}
// CHECK:STDOUT: !106 = !{!"any pointer", !105, i64 0}
// CHECK:STDOUT: !112 = !{!"int", !105, i64 0}
// CHECK:STDOUT: !118 = !{i32 8, !"PIC Level", i32 2}
// CHECK:STDOUT: !119 = !{i32 7, !"PIE Level", i32 2}
// CHECK:STDOUT: !120 = !{i32 7, !"uwtable", i32 2}
// CHECK:STDOUT: !121 = !{!"__libc_errno", !112, i64 0}
// CHECK:STDOUT: !122 = !{!121, !112, i64 0}
// CHECK:STDOUT: !152 = !DIFile(filename: "import_class_with_nontrivial_copy.carbon", directory: "")
// CHECK:STDOUT: !153 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !152, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
// CHECK:STDOUT: !154 = distinct !DISubprogram(name: "PassRefExpr", linkageName: "_CPassRefExpr.Main", scope: null, file: !152, line: 6, type: !41, spFlags: DISPFlagDefinition, unit: !153)
// CHECK:STDOUT: !155 = !DILocation(line: 7, column: 3, scope: !154)
// CHECK:STDOUT: !157 = !DILocation(line: 8, column: 3, scope: !154)
// CHECK:STDOUT: !158 = !DILocation(line: 9, column: 3, scope: !154)
// CHECK:STDOUT: !159 = !DILocation(line: 10, column: 3, scope: !154)
// CHECK:STDOUT: !161 = !DILocation(line: 11, column: 3, scope: !154)
// CHECK:STDOUT: !162 = !DILocation(line: 6, column: 1, scope: !154)
// CHECK:STDOUT: !163 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core", scope: null, file: !152, line: 7, type: !60, spFlags: DISPFlagDefinition, unit: !153, retainedNodes: !166)
// CHECK:STDOUT: !164 = !DILocalVariable(arg: 1, scope: !163, type: !42)
// CHECK:STDOUT: !165 = !DILocation(line: 7, column: 3, scope: !163)
// CHECK:STDOUT: !166 = !{!164}
// CHECK:STDOUT: !167 = distinct !DISubprogram(name: "PassInitExpr", linkageName: "_CPassInitExpr.Main", scope: null, file: !152, line: 16, type: !41, spFlags: DISPFlagDefinition, unit: !153)
// CHECK:STDOUT: !168 = !DILocation(line: 17, column: 19, scope: !167)
// CHECK:STDOUT: !169 = !DILocation(line: 17, column: 3, scope: !167)
// CHECK:STDOUT: !170 = !DILocation(line: 16, column: 1, scope: !167)
// CHECK:STDOUT: !171 = distinct !DISubprogram(name: "PassValueExpr", linkageName: "_CPassValueExpr.Main", scope: null, file: !152, line: 20, type: !60, spFlags: DISPFlagDefinition, unit: !153, retainedNodes: !177)
// CHECK:STDOUT: !172 = !DILocalVariable(arg: 1, scope: !171, type: !42)
// CHECK:STDOUT: !175 = !DILocation(line: 21, column: 3, scope: !171)
// CHECK:STDOUT: !176 = !DILocation(line: 20, column: 1, scope: !171)
// CHECK:STDOUT: !177 = !{!172}
// CHECK:STDOUT: !178 = !{!"p1 _ZTS1Y", !106, i64 0}
// CHECK:STDOUT: !179 = !{!178, !178, i64 0}
// CHECK:STDOUT: !42 = !{null}
// CHECK:STDOUT: !43 = !DISubroutineType(types: !42)
// CHECK:STDOUT: !44 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
// CHECK:STDOUT: !61 = !{null, !44}
// CHECK:STDOUT: !62 = !DISubroutineType(types: !61)
// CHECK:STDOUT: !106 = !{!"Simple C++ TBAA"}
// CHECK:STDOUT: !107 = !{!"omnipotent char", !106, i64 0}
// CHECK:STDOUT: !108 = !{!"any pointer", !107, i64 0}
// CHECK:STDOUT: !114 = !{!"int", !107, i64 0}
// CHECK:STDOUT: !120 = !{i32 8, !"PIC Level", i32 2}
// CHECK:STDOUT: !121 = !{i32 7, !"PIE Level", i32 2}
// CHECK:STDOUT: !122 = !{i32 7, !"uwtable", i32 2}
// CHECK:STDOUT: !123 = !{!"__libc_errno", !114, i64 0}
// CHECK:STDOUT: !124 = !{!123, !114, i64 0}
// CHECK:STDOUT: !154 = !DIFile(filename: "import_class_with_nontrivial_copy.carbon", directory: "")
// CHECK:STDOUT: !155 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !154, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
// CHECK:STDOUT: !156 = distinct !DISubprogram(name: "PassRefExpr", linkageName: "_CPassRefExpr.Main", scope: null, file: !154, line: 6, type: !43, spFlags: DISPFlagDefinition, unit: !155)
// CHECK:STDOUT: !157 = !DILocation(line: 7, column: 3, scope: !156)
// CHECK:STDOUT: !159 = !DILocation(line: 8, column: 3, scope: !156)
// CHECK:STDOUT: !160 = !DILocation(line: 9, column: 3, scope: !156)
// CHECK:STDOUT: !161 = !DILocation(line: 10, column: 3, scope: !156)
// CHECK:STDOUT: !163 = !DILocation(line: 11, column: 3, scope: !156)
// CHECK:STDOUT: !164 = !DILocation(line: 6, column: 1, scope: !156)
// CHECK:STDOUT: !165 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.988e3d50a7ba5577:core.Destroy.Core", scope: null, file: !154, line: 7, type: !62, spFlags: DISPFlagDefinition, unit: !155, retainedNodes: !168)
// CHECK:STDOUT: !166 = !DILocalVariable(arg: 1, scope: !165, type: !44)
// CHECK:STDOUT: !167 = !DILocation(line: 7, column: 3, scope: !165)
// CHECK:STDOUT: !168 = !{!166}
// CHECK:STDOUT: !169 = distinct !DISubprogram(name: "PassInitExpr", linkageName: "_CPassInitExpr.Main", scope: null, file: !154, line: 16, type: !43, spFlags: DISPFlagDefinition, unit: !155)
// CHECK:STDOUT: !170 = !DILocation(line: 17, column: 19, scope: !169)
// CHECK:STDOUT: !171 = !DILocation(line: 17, column: 3, scope: !169)
// CHECK:STDOUT: !172 = !DILocation(line: 16, column: 1, scope: !169)
// CHECK:STDOUT: !173 = distinct !DISubprogram(name: "PassValueExpr", linkageName: "_CPassValueExpr.Main", scope: null, file: !154, line: 20, type: !62, spFlags: DISPFlagDefinition, unit: !155, retainedNodes: !179)
// CHECK:STDOUT: !174 = !DILocalVariable(arg: 1, scope: !173, type: !44)
// CHECK:STDOUT: !177 = !DILocation(line: 21, column: 3, scope: !173)
// CHECK:STDOUT: !178 = !DILocation(line: 20, column: 1, scope: !173)
// CHECK:STDOUT: !179 = !{!174}
// CHECK:STDOUT: !180 = !{!"p1 _ZTS1Y", !108, i64 0}
// CHECK:STDOUT: !181 = !{!180, !180, i64 0}
// CHECK:STDOUT: