compiler

Unnamed Compiled Systems Language Project
git clone http://frotz.net/git/compiler.git
Log | Files | Refs

commit b2f95fcfee40c82bdfb97ca10d1d40e69b21fb29
parent a1663368b1f1753be899839d9ae056632770c08b
Author: Brian Swetland <swetland@frotz.net>
Date:   Sun, 23 May 2021 20:15:26 -0700

test: tidy up

Diffstat:
Mtest/1040-structs.log | 2++
Mtest/1040-structs.src | 4++++
Rtest/1103-err-decl-mismatch-array.src -> test/2003-err-decl-mismatch-array.src | 0
3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/1040-structs.log b/test/1040-structs.log @@ -6,4 +6,6 @@ D 00000080 D 000001cb D 10203040 D 50607080 +D 00000007 +D 00000006 X 00000000 diff --git a/test/1040-structs.src b/test/1040-structs.src @@ -22,6 +22,8 @@ func print(p *Point) { var p0 Point = { x: 45, y: 17 }; var p1 Point = { x: 5, y: 3 }; +var p2 struct { x i32, y i32, } = { x: 7, y: 6 }; + func start() i32 { _hexout_(p0.x); _hexout_(p0.y); @@ -35,5 +37,7 @@ func start() i32 { z.x = 0x10203040; z.y = 0x50607080; print(&z); + _hexout_(p2.x); + _hexout_(p2.y); return 0; } diff --git a/test/1103-err-decl-mismatch-array.src b/test/2003-err-decl-mismatch-array.src