Fixed up testing etc

This commit is contained in:
Nathan Braswell
2015-01-09 14:28:07 -05:00
parent ad0e90f74a
commit 9e9b4371da
54 changed files with 16 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
import io:*;
typedef DestructorPrint {
|char*| myStr;
|DestructorPrint*| construct(|char*| str) {
myStr = str;
return this;
}
|void| destruct() {
println(myStr);
}
};
typedef NoDistruction {
|int| a;
|void| dummyFunc() {}
};
|void| indirPrint() {
|DestructorPrint| testObj.construct("Hello Destructors!");
|NoDistruction| dummy;
}
|int| main() {
indirPrint();
return 0;
}