quakeforge/tools/qfcc/test/ptrderef.r
Bill Currie 793112de9a Add some more tests.
structptr.r is actually usable for automated testing when I get around to
it.
2012-11-20 15:39:00 +09:00

18 lines
209 B
R

int y;
void
ptrderef (int *to, int *from)
{
int x;
x = *from;
x = *from++;
x = *++from;
x = ++*from;
to = from++;
to = ++from;
*to = *from++;
*to = *++from;
*to = x;
*to++ = *from++;
y = *to++;
}