Skip to content

Commit 57c9755

Browse files
committed
fix tests
1 parent bb5221f commit 57c9755

File tree

35 files changed

+146
-144
lines changed

35 files changed

+146
-144
lines changed

src/codegen/tests/debug_tests.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ fn switch_case_debug_info() {
218218
"#,
219219
);
220220

221-
assert_snapshot!(codegen, @r###"
221+
assert_snapshot!(codegen, @r#"
222222
; ModuleID = '<internal>'
223223
source_filename = "<internal>"
224224
@@ -312,14 +312,14 @@ fn switch_case_debug_info() {
312312
!5 = !DISubroutineType(flags: DIFlagPublic, types: !6)
313313
!6 = !{null}
314314
!7 = !{}
315-
!8 = !DILocalVariable(name: "x1", scope: !4, file: !3, line: 4, type: !9, align: 16)
315+
!8 = !DILocalVariable(name: "x1", scope: !4, file: !3, line: 4, type: !9)
316316
!9 = !DIBasicType(name: "INT", size: 16, encoding: DW_ATE_signed, flags: DIFlagPublic)
317317
!10 = !DILocation(line: 4, column: 16, scope: !4)
318-
!11 = !DILocalVariable(name: "x2", scope: !4, file: !3, line: 5, type: !9, align: 16)
318+
!11 = !DILocalVariable(name: "x2", scope: !4, file: !3, line: 5, type: !9)
319319
!12 = !DILocation(line: 5, column: 16, scope: !4)
320-
!13 = !DILocalVariable(name: "x3", scope: !4, file: !3, line: 6, type: !9, align: 16)
320+
!13 = !DILocalVariable(name: "x3", scope: !4, file: !3, line: 6, type: !9)
321321
!14 = !DILocation(line: 6, column: 16, scope: !4)
322-
!15 = !DILocalVariable(name: "main", scope: !4, file: !3, line: 2, type: !16, align: 32)
322+
!15 = !DILocalVariable(name: "main", scope: !4, file: !3, line: 2, type: !16)
323323
!16 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
324324
!17 = !DILocation(line: 2, column: 17, scope: !4)
325325
!18 = !DILocation(line: 22, column: 12, scope: !4)
@@ -335,7 +335,7 @@ fn switch_case_debug_info() {
335335
!28 = !DILocation(line: 17, column: 20, scope: !4)
336336
!29 = !DILocation(line: 18, column: 20, scope: !4)
337337
!30 = !DILocation(line: 19, column: 20, scope: !4)
338-
"###);
338+
"#);
339339
}
340340

341341
#[test]
@@ -435,7 +435,7 @@ fn action_with_var_temp() {
435435
",
436436
);
437437

438-
assert_snapshot!(codegen, @r###"
438+
assert_snapshot!(codegen, @r#"
439439
; ModuleID = '<internal>'
440440
source_filename = "<internal>"
441441
@@ -501,7 +501,7 @@ fn action_with_var_temp() {
501501
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
502502
!1 = distinct !DIGlobalVariable(name: "PLC_PRG", scope: !2, file: !2, line: 7, type: !3, isLocal: false, isDefinition: true)
503503
!2 = !DIFile(filename: "<internal>", directory: "")
504-
!3 = !DICompositeType(tag: DW_TAG_structure_type, name: "PLC_PRG", scope: !2, file: !2, line: 7, align: 64, flags: DIFlagPublic, elements: !4, identifier: "PLC_PRG")
504+
!3 = !DICompositeType(tag: DW_TAG_structure_type, name: "PLC_PRG", scope: !2, file: !2, line: 7, flags: DIFlagPublic, elements: !4, identifier: "PLC_PRG")
505505
!4 = !{}
506506
!5 = !{i32 2, !"Dwarf Version", i32 5}
507507
!6 = !{i32 2, !"Debug Info Version", i32 3}
@@ -510,7 +510,7 @@ fn action_with_var_temp() {
510510
!9 = distinct !DISubprogram(name: "main", linkageName: "main", scope: !2, file: !2, line: 2, type: !10, scopeLine: 3, flags: DIFlagPublic, spFlags: DISPFlagDefinition, unit: !7, retainedNodes: !4)
511511
!10 = !DISubroutineType(flags: DIFlagPublic, types: !11)
512512
!11 = !{null}
513-
!12 = !DILocalVariable(name: "main", scope: !9, file: !2, line: 2, type: !13, align: 32)
513+
!12 = !DILocalVariable(name: "main", scope: !9, file: !2, line: 2, type: !13)
514514
!13 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
515515
!14 = !DILocation(line: 2, column: 17, scope: !9)
516516
!15 = !DILocation(line: 3, column: 12, scope: !9)
@@ -521,14 +521,14 @@ fn action_with_var_temp() {
521521
!20 = !{null, !3}
522522
!21 = !DILocalVariable(name: "PLC_PRG", scope: !18, file: !2, line: 12, type: !3)
523523
!22 = !DILocation(line: 12, column: 12, scope: !18)
524-
!23 = !DILocalVariable(name: "x", scope: !18, file: !2, line: 9, type: !13, align: 32)
524+
!23 = !DILocalVariable(name: "x", scope: !18, file: !2, line: 9, type: !13)
525525
!24 = !DILocation(line: 9, column: 12, scope: !18)
526526
!25 = !DILocation(line: 13, column: 8, scope: !18)
527527
!26 = distinct !DISubprogram(name: "PLC_PRG.act", linkageName: "PLC_PRG.act", scope: !2, file: !2, line: 16, type: !19, scopeLine: 17, flags: DIFlagPublic, spFlags: DISPFlagDefinition, unit: !7, retainedNodes: !4)
528528
!27 = !DILocalVariable(name: "PLC_PRG", scope: !26, file: !2, line: 17, type: !3)
529529
!28 = !DILocation(line: 17, column: 16, scope: !26)
530-
!29 = !DILocalVariable(name: "x", scope: !26, file: !2, line: 9, type: !13, align: 32)
530+
!29 = !DILocalVariable(name: "x", scope: !26, file: !2, line: 9, type: !13)
531531
!30 = !DILocation(line: 9, column: 12, scope: !26)
532532
!31 = !DILocation(line: 18, column: 12, scope: !26)
533-
"###);
533+
"#);
534534
}

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__aggregate_return_value_variable_in_function.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ attributes #1 = { argmemonly nofree nounwind willreturn }
3737
!5 = !DIFile(filename: "<internal>", directory: "")
3838
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
3939
!7 = !{null, !8}
40-
!8 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__auto_pointer_to_STRING", baseType: !9, size: 64, align: 64, dwarfAddressSpace: 1)
41-
!9 = !DICompositeType(tag: DW_TAG_array_type, baseType: !10, size: 648, align: 8, elements: !11)
40+
!8 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__auto_pointer_to_STRING", baseType: !9, size: 64, dwarfAddressSpace: 1)
41+
!9 = !DICompositeType(tag: DW_TAG_array_type, baseType: !10, size: 648, elements: !11)
4242
!10 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_UTF, flags: DIFlagPublic)
4343
!11 = !{!12}
4444
!12 = !DISubrange(count: 81, lowerBound: 0)

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__array_size_correctly_set_in_dwarf_info.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ attributes #1 = { argmemonly nofree nounwind willreturn writeonly }
3939
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
4040
!7 = !{null}
4141
!8 = !{}
42-
!9 = !DILocalVariable(name: "a", scope: !4, file: !5, line: 4, type: !10, align: 32)
43-
!10 = !DICompositeType(tag: DW_TAG_array_type, baseType: !11, size: 2048, align: 32, elements: !12)
42+
!9 = !DILocalVariable(name: "a", scope: !4, file: !5, line: 4, type: !10)
43+
!10 = !DICompositeType(tag: DW_TAG_array_type, baseType: !11, size: 2048, elements: !12)
4444
!11 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
4545
!12 = !{!13}
4646
!13 = !DISubrange(count: 64, lowerBound: 1)
4747
!14 = !DILocation(line: 4, column: 12, scope: !4)
48-
!15 = !DILocalVariable(name: "foo", scope: !4, file: !5, line: 2, type: !11, align: 32)
48+
!15 = !DILocalVariable(name: "foo", scope: !4, file: !5, line: 2, type: !11)
4949
!16 = !DILocation(line: 2, column: 17, scope: !4)
5050
!17 = !DILocation(line: 6, column: 8, scope: !4)
5151
; ModuleID = '__init___testproject'

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__assignment_statement_have_location.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
3232
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
3333
!7 = !{null}
3434
!8 = !{}
35-
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10, align: 32)
35+
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10)
3636
!10 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
3737
!11 = !DILocation(line: 2, column: 17, scope: !4)
3838
!12 = !DILocation(line: 3, column: 12, scope: !4)

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__case_conditions_location_marked.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
5151
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
5252
!7 = !{null}
5353
!8 = !{}
54-
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10, align: 32)
54+
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10)
5555
!10 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
5656
!11 = !DILocation(line: 2, column: 17, scope: !4)
5757
!12 = !DILocation(line: 3, column: 12, scope: !4)

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__exit_statement_have_location.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
5050
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
5151
!7 = !{null}
5252
!8 = !{}
53-
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10, align: 32)
53+
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10)
5454
!10 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
5555
!11 = !DILocation(line: 2, column: 17, scope: !4)
5656
!12 = !DILocation(line: 5, column: 12, scope: !4)

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__for_conditions_location_marked.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
5555
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
5656
!7 = !{null}
5757
!8 = !{}
58-
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10, align: 32)
58+
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10)
5959
!10 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
6060
!11 = !DILocation(line: 2, column: 17, scope: !4)
6161
!12 = !DILocation(line: 3, column: 16, scope: !4)

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__function_calls_have_location.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
3232
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
3333
!7 = !{null}
3434
!8 = !{}
35-
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10, align: 32)
35+
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10)
3636
!10 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
3737
!11 = !DILocation(line: 2, column: 17, scope: !4)
3838
!12 = !DILocation(line: 3, column: 12, scope: !4)

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__function_calls_in_expressions_have_location.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
3333
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
3434
!7 = !{null}
3535
!8 = !{}
36-
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10, align: 32)
36+
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10)
3737
!10 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
3838
!11 = !DILocation(line: 2, column: 17, scope: !4)
3939
!12 = !DILocation(line: 3, column: 16, scope: !4)

src/codegen/tests/debug_tests/snapshots/rusty__codegen__tests__debug_tests__expression_debugging__if_conditions_location_marked.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ attributes #0 = { nofree nosync nounwind readnone speculatable willreturn }
5050
!6 = !DISubroutineType(flags: DIFlagPublic, types: !7)
5151
!7 = !{null}
5252
!8 = !{}
53-
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10, align: 32)
53+
!9 = !DILocalVariable(name: "myFunc", scope: !4, file: !5, line: 2, type: !10)
5454
!10 = !DIBasicType(name: "DINT", size: 32, encoding: DW_ATE_signed, flags: DIFlagPublic)
5555
!11 = !DILocation(line: 2, column: 17, scope: !4)
5656
!12 = !DILocation(line: 3, column: 15, scope: !4)

0 commit comments

Comments
 (0)