Added tests for array/struct impl, but they in general require printing

to screen
This commit is contained in:
Mitchell Plamann
2015-04-06 01:21:41 -04:00
parent 447b40710e
commit 30e983e656
11 changed files with 150 additions and 0 deletions

18
test/structs.c0 Normal file
View File

@@ -0,0 +1,18 @@
#use <conio>
struct test {
int a;
string b;
int c;
};
int main() {
struct test* t = alloc(struct test);
t->a = 1;
t->b = "potato chip";
t->c = 23;
print(t->b);
printint(t->a);
printint(t->c);
return 0;
}