summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr92741.c
blob: 8524c86557b3acf05404894c34dcad7a26ab5f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-options "-O2 -fexceptions -fnon-call-exceptions -fno-inline" } */

typedef int vh __attribute__ ((__vector_size__ (2 * sizeof (int))));
typedef short int cq __attribute__ ((__vector_size__ (4 * sizeof (short int))));

static void
id (int *r8, vh *tu)
{
  *(vh *) r8 = *tu;
}

void
mr (void)
{
  int r8;
  cq he = { 0, };

  id (&r8, (vh *) &he);
}