taskexit( s{ !initialstate } );
}
-/*
+
task aliasFromObjectAssignment
( Parameter p1{!w}, Parameter p2{!w} ) {
taskexit( p1{w}, p2{w} );
}
-*/
-/*
task bunchOfPaths
( Parameter p1{!w}, Parameter p2{!w} ) {
taskexit( p1{w}, p2{w} );
}
-*/
-/*
task literalTest( Parameter p1{!w} ) {
Parameter x = null;
int y = 5;
taskexit( p1{w}, p2{w} );
}
-*/
\ No newline at end of file
+
+task NoAliasNewInLoop( Voo v{ f } ) {
+
+ for( int i = 0; i < 10; ++i ) {
+ Voo w = new Voo();
+ w.b = new Baw();
+ w.b.f = new Foo();
+ }
+
+ taskexit( v{ !f } );
+}
+
+
+task NoAliasNewInLoopAnotherWay( Voo v{ f } ) {
+
+ for( int i = 0; i < 10; ++i ) {
+ Voo w = new Voo();
+ Baw b = new Baw();
+ Foo f = new Foo();
+
+ w.b = b;
+ b.f = f;
+ }
+
+ taskexit( v{ !f } );
+}