quakeforge/tools/qfcc/test/ptrderef.r
Bill Currie f307c7bebc Rework the unary_expr grammar to allow ++*foo.
This required throwing out the primary rules that snax did up to help me
with conflicts many years ago, but they were now getting in the way. Now
the productions from primary are merged in with unary_expr.
2012-11-09 12:32:38 +09:00

14 lines
162 B
R

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