1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* { dg-do compile } */ /* { dg-options "-O2" } */ typedef struct { int x; int i, j; } off_struct; int foo (char *str, int *a, int b, int c) { off_struct *p = (off_struct *)(str + 3); b = p->i; c = p->j; *a = b + c; return 0; }