2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / ldrd-strd-offset.c
bloba128a0a0e4b299b3d2a256c3166fd2ee8a882542
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef struct
6 int x;
7 int i, j;
8 } off_struct;
10 int foo (char *str, int *a, int b, int c)
12 off_struct *p = (off_struct *)(str + 3);
13 b = p->i;
14 c = p->j;
15 *a = b + c;
16 return 0;