summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/struct-arg-dw2.c
blob: effd13d19a449f66853ef00954a74ac83f770cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Verify that we don't generate fame related insn against stack adjustment
   for the object sent partially in registers. */
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-g" } */
/* { dg-final { scan-assembler-not "\t.cfi_def_cfa_offset 16" } } */

typedef struct
{
  unsigned short A1;
  unsigned short A2;
} A_t;

typedef struct
{
  A_t C13[10];
} C_t;

void
Store (C_t Par)
{
  unsigned char *ptr;
  unsigned int test;

  ptr = (unsigned char*) 0x12345678;
  ptr++;
}