Skip to content

Commit b21d996

Browse files
Update tests
1 parent a2cf0d2 commit b21d996

File tree

4 files changed

+31
-30
lines changed

4 files changed

+31
-30
lines changed

run_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def is_included(backend):
9696
run_test(
9797
filename,
9898
"llvm_dbg",
99-
"lpython --no-color --show-llvm -g {infile} -o {outfile}",
99+
"lpython --no-color --show-llvm -g --debug-with-line-column "
100+
"{infile} -o {outfile}",
100101
filename,
101102
update_reference,
102103
extra_args)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "llvm_dbg-expr_01-9fc5f30",
3+
"cmd": "lpython --no-color --show-llvm -g --debug-with-line-column {infile} -o {outfile}",
4+
"infile": "tests/expr_01.py",
5+
"infile_hash": "4284fe3a1b4dd3e5d1de1357a79e9a25b426ca245b4cc91cf99e8547",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": "llvm_dbg-expr_01-9fc5f30.stdout",
9+
"stdout_hash": "d9ddd67926153e27017b59e3d5786b20797f0819c7943ccb3c334188",
10+
"stderr": null,
11+
"stderr_hash": null,
12+
"returncode": 0
13+
}

tests/reference/llvm_dbg-expr_01-bc258d6.stdout renamed to tests/reference/llvm_dbg-expr_01-9fc5f30.stdout

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,28 @@ attributes #0 = { nounwind readnone speculatable willreturn }
4949
!llvm.dbg.cu = !{!0}
5050

5151
!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "LPython Compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
52-
!1 = !DIFile(filename: "xxexpr.py", directory: "/yy/")
52+
!1 = !DIFile(filename: "tests/expr_01.py", directory: ".")
5353
!2 = !{}
54-
!3 = distinct !DISubprogram(name: "_lpython_main_program", scope: !1, file: !1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
54+
!3 = distinct !DISubprogram(name: "_lpython_main_program", scope: !1, file: !1, line: 1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
5555
!4 = !DISubroutineType(types: !5)
5656
!5 = !{null}
57-
!6 = !DILocation(line: 89, scope: !3)
58-
!7 = distinct !DISubprogram(name: "main0", scope: !1, file: !1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
59-
!8 = !DILocation(line: 0, scope: !7)
60-
!9 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 17, type: !10)
57+
!6 = !DILocation(line: 9, column: 1, scope: !3)
58+
!7 = distinct !DISubprogram(name: "main0", scope: !1, file: !1, line: 1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
59+
!8 = !DILocation(line: 1, column: 1, scope: !7)
60+
!9 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 2, type: !10)
6161
!10 = !DIBasicType(name: "integer", size: 32, encoding: DW_ATE_signed)
62-
!11 = !DILocation(line: 17, scope: !7)
63-
!12 = !DILocalVariable(name: "x2", arg: 2, scope: !7, file: !1, line: 28, type: !13)
62+
!11 = !DILocation(line: 2, scope: !7)
63+
!12 = !DILocalVariable(name: "x2", arg: 2, scope: !7, file: !1, line: 3, type: !13)
6464
!13 = !DIBasicType(name: "integer", size: 64, encoding: DW_ATE_signed)
65-
!14 = !DILocation(line: 28, scope: !7)
66-
!15 = !DILocalVariable(name: "y", arg: 3, scope: !7, file: !1, line: 40, type: !16)
65+
!14 = !DILocation(line: 3, scope: !7)
66+
!15 = !DILocalVariable(name: "y", arg: 3, scope: !7, file: !1, line: 4, type: !16)
6767
!16 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)
68-
!17 = !DILocation(line: 40, scope: !7)
69-
!18 = !DILocalVariable(name: "y2", arg: 4, scope: !7, file: !1, line: 51, type: !19)
68+
!17 = !DILocation(line: 4, scope: !7)
69+
!18 = !DILocalVariable(name: "y2", arg: 4, scope: !7, file: !1, line: 5, type: !19)
7070
!19 = !DIBasicType(name: "double", size: 64, encoding: DW_ATE_float)
71-
!20 = !DILocation(line: 51, scope: !7)
72-
!21 = !DILocation(line: 63, scope: !7)
73-
!22 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, type: !23, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
71+
!20 = !DILocation(line: 5, scope: !7)
72+
!21 = !DILocation(line: 6, column: 5, scope: !7)
73+
!22 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, line: 1, type: !23, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
7474
!23 = !DISubroutineType(types: !24)
7575
!24 = !{!10}
76-
!25 = !DILocation(line: 0, scope: !22)
76+
!25 = !DILocation(line: 1, column: 1, scope: !22)

tests/reference/llvm_dbg-expr_01-bc258d6.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)