return b;
}
-
- /*
public void ruinSomeFoos( Foo a, Foo b ) {
a.x = b.x;
}
p0.y = p1;
p1.y = p0;
}
- */
}
+
// this empty task should still create a non-empty
// ownership graph showing parameter allocation
// look for the parameter s as a label referencing
// a heap region that is multi-object, flagged, not summary
task Startup( StartupObject s{ initialstate } ) {
- taskexit( s{ !initialstate } );
+
+ Parameter p0 = new Parameter();
+
+ //int a, b, c;
+
+
+ int a;
+ int b;
+ int c;
+
+ b = c;
+ a = b;
+
+
+ taskexit( s{ !initialstate } );
}
-/*
+
task NewObjectA( Foo a{ f }, Foo b{ f } ) {
Foo c = new Foo();
taskexit( a{ !f } );
}
-*/
-/*
+
task arrayAssignments( Foo a{ f } ) {
Foo f[] = new Foo[3];
taskexit( a{ !f } );
}
-*/
+
public class Zool {
public Zool() {}
taskexit( a{ !f } );
}
-/*
+
task methodTest( Foo p0{ f } ) {
Foo up0 = new Foo();
taskexit( p0{ !f }, p1{ !f } );
}
-*/
\ No newline at end of file