Handle T_HRESULT types in CodeView records
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-shr.c
blob31a27c8832dd561af65ce65b80cb2c78f1de442c
1 /* { dg-do run } */
2 /* { dg-options "-O3 -fno-inline" } */
4 #include <stdlib.h>
6 typedef struct { double r, i; } complex;
7 #define LEN 30
8 complex c[LEN];
9 double d[LEN];
11 void
12 foo (complex *c, double *d, int len1)
14 int i;
15 for (i = 0; i < len1; i++)
17 c[i].r = d[i];
18 c[i].i = 0.0;
22 int
23 main (void)
25 int i;
26 for (i = 0; i < LEN; i++)
27 d[i] = (double) i;
28 foo (c, d, LEN);
29 for (i=0;i<LEN;i++)
30 if ((c[i].r != (double) i) || (c[i].i != 0.0))
31 abort ();
32 return 0;