mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
ddc6f6bcb0
The VM has no pointer to direct reference move instruction. Fixes #9
22 lines
273 B
R
22 lines
273 B
R
typedef struct Point_s {
|
|
int x;
|
|
int y;
|
|
} Point;
|
|
|
|
typedef struct Extent_s {
|
|
int width;
|
|
int height;
|
|
} Extent;
|
|
|
|
int
|
|
foo (Point p)
|
|
{
|
|
Extent e = *(Extent *)&p;
|
|
return e.width * e.height;
|
|
}
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
return foo ({ 6, 7 }) != 42;
|
|
}
|