function calls mostly working

This commit is contained in:
pommicket 2022-02-12 21:27:57 -05:00
parent dd8eaee987
commit e0495afd42
4 changed files with 151 additions and 2 deletions

View file

@ -1,4 +1,28 @@
typedef struct {
long a;
long aah[810];
long b;
} Structure;
Structure mkstruct(int x, int y) {
Structure s;
s.a = x;
s.b = y;
return s;
}
Structure mkstruct1(int x) {
return mkstruct(x, x*2);
}
Structure mkstruct_a() {
return mkstruct1(1033.3);
}
long main(int argc, char **argv) {
return 43 >> 2;
Structure t;
t = mkstruct_a();
return t.b;
}