From 9a5ca20d2537179f3a8e01762c8db6b52a4db2d9 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sat, 3 Oct 2026 14:03:48 -0700 Subject: Chapter 17a: Mutability and Read-Only Views --- src/test/java/com/seaofnodes/simple/Chapter11Test.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/java/com/seaofnodes/simple/Chapter11Test.java') diff --git a/src/test/java/com/seaofnodes/simple/Chapter11Test.java b/src/test/java/com/seaofnodes/simple/Chapter11Test.java index e009c6b6..60ff05d8 100644 --- a/src/test/java/com/seaofnodes/simple/Chapter11Test.java +++ b/src/test/java/com/seaofnodes/simple/Chapter11Test.java @@ -9,7 +9,7 @@ public class Chapter11Test { @Test public void testIndependentField() { var stop = new Parser(""" struct S { int x; int y; }; - S s = new S; + !S !s = new S; s.x = 42; while (arg > 0) { s.y = s.y + arg; arg = arg - 1; } return s.x; @@ -22,8 +22,8 @@ public class Chapter11Test { @Test public void testParallelMemoryPhis() { var stop = new Parser(""" struct S { int x; int y; int z; }; - S a = new S; S b = new S; - S p = a; if (arg) p = b; + !S !a = new S; !S !b = new S; + !S !p = a; if (arg) p = b; while (arg > 0) { a.x = p.x + arg; a.y = p.y + 2; -- cgit v1.2.3