diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr33238.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr33238.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr33238.c b/gcc/testsuite/gcc.dg/pr33238.c new file mode 100644 index 000000000..0b399041a --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr33238.c @@ -0,0 +1,12 @@ +/* PR c/33238 */ +/* { dg-do compile } */ +/* { dg-options "-std=gnu89" } */ + +void +reverse (void *x, int y, int z) +{ + struct { char w[z]; } *p = x, a; + int i, j; + for (i = y - 1, j = 0; j < y / 2; i--, j++) + ({ a = p[i]; p[i] = p[j]; p[j] = a; }); +} |