]> gitweb.factorcode.org Git - factor.git/commitdiff
specialized-array: The day of doing everything twice.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 26 Aug 2012 05:53:22 +0000 (22:53 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 26 Aug 2012 05:53:22 +0000 (22:53 -0700)
basis/specialized-arrays/specialized-arrays-tests.factor

index 263e0f72bb38cdb723c54c4bb7fd3e5cfcb65c42..854c76aa02fcc130426059926902cd075f9ff528 100644 (file)
@@ -34,7 +34,7 @@ SPECIALIZED-ARRAYS: bool uchar ushort char uint float ulonglong ;
 [ B{ 210 4 1 } ushort cast-array ] must-fail
 
 [ { 3 1 3 3 7 } ] [
-    int-array{ 3 1 3 3 7 } malloc-byte-array [ 5 int <c-direct-array> >array ] with-disposal
+    int-array{ 3 1 3 3 7 } malloc-byte-array [ &free 5 int <c-direct-array> >array ] with-destructors
 ] unit-test
 
 [ float-array{ 0x1.222,222p0   0x1.111,112p0   } ]