summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/Chapter11Test.java
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-10-03 14:03:48 -0700
committerCliff Click <cliffc@acm.org>2026-10-04 13:30:41 -0700
commit9a5ca20d2537179f3a8e01762c8db6b52a4db2d9 (patch)
tree6fe0ab1ae48b05fb6a6e98f73c4dfdc52aec5c5d /src/test/java/com/seaofnodes/simple/Chapter11Test.java
parent63fe16fa2ea123b8ce2f976662b0a6d09f352868 (diff)
downloadSimple-linear-chapter17a.tar.gz
Simple-linear-chapter17a.zip
Chapter 17a: Mutability and Read-Only Viewslinear-chapter17a
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/Chapter11Test.java')
-rw-r--r--src/test/java/com/seaofnodes/simple/Chapter11Test.java6
1 files changed, 3 insertions, 3 deletions
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;