aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/ldrd-strd-offset.c
blob: a128a0a0e4b299b3d2a256c3166fd2ee8a882542 (plain)
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;
}