Skip to content

Commit f1f0255

Browse files
committed
Update reference tests
1 parent c15728a commit f1f0255

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-structs_02-2ab459a",
3+
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4+
"infile": "tests/../integration_tests/structs_02.py",
5+
"infile_hash": "6fef6d8ffa89f23edb2a6f01ed41cd310c152c81b840151f7457c722",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": "asr-structs_02-2ab459a.stdout",
9+
"stdout_hash": "bd8ca2fc3e77f4461f62726778bed4738540dbdc6167be95394f0069",
10+
"stderr": null,
11+
"stderr_hash": null,
12+
"returncode": 0
13+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(TranslationUnit (SymbolTable 1 {A: (DerivedType (SymbolTable 2 {x: (Variable 2 x Local () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 2 y Local () () Default (Real 4 []) Source Public Required .false.)}) A [x y] Source Public ()), _lpython_main_program: (Subroutine (SymbolTable 6 {}) _lpython_main_program [] [(SubroutineCall 1 g () [] ())] Source Public Implementation () .false. .false.), f: (Subroutine (SymbolTable 3 {a: (Variable 3 a In () () Default (CPtr) BindC Public Required .true.), a1: (Variable 3 a1 Local () () Default (Derived 1 A []) Source Public Required .false.), a2: (Variable 3 a2 Local () () Default (Pointer (Derived 1 A [])) Source Public Required .false.), x: (Variable 3 x Local () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 3 y Local () () Default (Real 4 []) Source Public Required .false.)}) f [(Var 3 a)] [(= (Var 3 a1) (DerivedTypeConstructor 1 A [(IntegerConstant 3 (Integer 4 [])) (Cast (RealConstant 3.25000000000000000e+00 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.25000000000000000e+00 (Real 4 [])))] (Derived 1 A []) ()) ()) (= (Var 3 a2) (GetPointer (Var 3 a1) (Pointer (Derived 1 A [])) ()) ()) (= (Var 3 x) (DerivedRef (Var 3 a2) 2 x (Integer 4 []) ()) ()) (= (Var 3 y) (DerivedRef (Var 3 a2) 2 y (Real 4 []) ()) ()) (Assert (Compare (Var 3 x) Eq (IntegerConstant 3 (Integer 4 [])) (Logical 4 []) () ()) ()) (Assert (Compare (Cast (Var 3 y) RealToReal (Real 8 []) ()) Eq (RealConstant 3.25000000000000000e+00 (Real 8 [])) (Logical 4 []) () ()) ()) (CPtrToPointer (Var 3 a) (Var 3 a2) ()) (Print () [(Var 3 a) (Var 3 a2)])] BindC Public Implementation () .false. .false.), g: (Subroutine (SymbolTable 4 {b: (Variable 4 b Local () () Default (CPtr) Source Public Required .false.)}) g [] [(SubroutineCall 1 f () [((Var 4 b))] ())] Source Public Implementation () .false. .false.), main_program: (Program (SymbolTable 5 {}) main_program [] [(SubroutineCall 1 _lpython_main_program () [] ())])}) [])

tests/tests.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ asr = true
205205
filename = "../integration_tests/structs_01.py"
206206
asr = true
207207

208+
[[test]]
209+
filename = "../integration_tests/structs_02.py"
210+
asr = true
211+
208212
[[test]]
209213
filename = "../integration_tests/bindc_01.py"
210214
asr = true

0 commit comments

Comments
 (0)