commit 5cb332642ea52ba1458f0ffb861e29232a9a6988 parent 5cf3621283fc1f5b5f07893e7334cc5798e44eed Author: Brian Swetland <swetland@frotz.net> Date: Fri, 29 Sep 2023 19:05:42 -0700 test 1045 list Diffstat:
A | test/1045-list.log | | | 2 | ++ |
A | test/1045-list.src | | | 16 | ++++++++++++++++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/test/1045-list.log b/test/1045-list.log @@ -0,0 +1,2 @@ +D 0000002a +X 00000000 diff --git a/test/1045-list.src b/test/1045-list.src @@ -0,0 +1,16 @@ + +struct Node { + next *Node, + value i32, +}; + +func print(node Node) { + _hexout_(node.value); +} + +func start() i32 { + var node Node = new(Node); + node.value = 42; + print(node); + return 0; +}