summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vmx/gcc-bug-1.c
blob: 684ffe90eb7ef7a0ddb3e1212372dbc23422ea5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
#include <altivec.h>
typedef struct n_a {
  signed char m1;
  vector float m2;
} n_a;

typedef struct n_b {
  signed char m1;
  struct n_a m2;
} n_b;

extern void f(n_b *);

void initn_b(signed char p1, struct n_a p2)
{
   n_b _i;
  ((_i).m1 = p1, (_i).m2 = p2);
  f(&_i);
}