Files
c3c/test/test_suite/struct/struct_params.c3
2021-11-16 17:46:44 +01:00

28 lines
332 B
Plaintext

module test;
struct Foo
{
char p;
short q;
char r;
int x;
short y, z;
int q2;
}
extern fn int test(Foo, float);
extern fn int testE(char,short,char,int,int,float);
fn void test3(Foo *x)
{
x.q = 1;
}
fn void test2(Foo y)
{
testE(y.p, y.q, y.r, y.x, y.y, 0.1);
test(y, 0.1);
test2(y);
test3(&y);
}