summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/spill/Chapter21Test-testAntiDeps1.smp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/spill/Chapter21Test-testAntiDeps1.smp')
-rw-r--r--src/test/java/com/seaofnodes/simple/spill/Chapter21Test-testAntiDeps1.smp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/com/seaofnodes/simple/spill/Chapter21Test-testAntiDeps1.smp b/src/test/java/com/seaofnodes/simple/spill/Chapter21Test-testAntiDeps1.smp
new file mode 100644
index 00000000..315cc5b6
--- /dev/null
+++ b/src/test/java/com/seaofnodes/simple/spill/Chapter21Test-testAntiDeps1.smp
@@ -0,0 +1,10 @@
+struct _S { int f; };
+var v0 = new _S;
+!_S? !v1;
+if (arg) v1 = new _S;
+if (v1) {
+ v0.f = v1.f;
+} else {
+ v0.f = 2;
+}
+return v0;