mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
widl: Test structure argument marshalling.
This commit is contained in:
parent
c0982b42c5
commit
2bc8808be1
@ -232,6 +232,12 @@ s_square_puint(puint_t p)
|
||||
return n * n;
|
||||
}
|
||||
|
||||
int
|
||||
s_dot_copy_vectors(vector_t u, vector_t v)
|
||||
{
|
||||
return u.x * v.x + u.y * v.y + u.z * v.z;
|
||||
}
|
||||
|
||||
void
|
||||
s_stop(void)
|
||||
{
|
||||
@ -342,6 +348,7 @@ basic_tests(void)
|
||||
ok(ptypes_sum(&ptypes) == 33.0, "RPC ptypes_sum\n");
|
||||
|
||||
ok(dot_pvectors(&pvecs) == -21, "RPC dot_pvectors\n");
|
||||
ok(dot_copy_vectors(vec1, vec2) == -21, "RPC dot_copy_vectors\n");
|
||||
ok(sum_fixed_array(f) == -2, "RPC sum_fixed_array\n");
|
||||
ok(sum_sp(&sp) == 29, "RPC sum_sp\n");
|
||||
}
|
||||
|
@ -132,5 +132,6 @@ interface IServer
|
||||
|
||||
typedef [wire_marshal(int)] void *puint_t;
|
||||
int square_puint(puint_t p);
|
||||
int dot_copy_vectors(vector_t u, vector_t v);
|
||||
void stop(void);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user