mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
342ba65f57
Fixes use of structs as entity fields. The test is currently compile-only.
26 lines
305 B
R
26 lines
305 B
R
typedef struct foo_s {
|
|
int a, b;
|
|
} foo_t;
|
|
|
|
entity self;
|
|
foo_t a, b;
|
|
vector x, y;
|
|
int i, j;
|
|
|
|
.vector v;
|
|
.foo_t foo;
|
|
|
|
void bar (entity other)
|
|
{
|
|
self.v = x;
|
|
self.foo.b = i;
|
|
j = self.foo.b;
|
|
self.foo.a = self.foo.b;
|
|
self.foo.b = self.foo.a;
|
|
}
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
return 0; // to survive and prevail :)
|
|
}
|