aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr117417.c
blob: 2c80dd5d77cd295660a88236261623d44e5f0b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */

typedef __attribute__((__vector_size__ (8))) double V;
int bar (int a, V *p)
{
  V v;
  v = *p;
  a += *(_Complex short *) &v;
  return a;
}
V x;
int
foo ()
{
  return bar (0, &x);
}