summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/alpha/pr42448-1.c
blob: 4e2c376e39dc782130702346520451175a8c44d3 (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
27
/* { dg-do run } */
/* { dg-options "-mcpu=21064 -O0" } */

extern void abort (void);

struct S2180
{
  char t;
  _Complex char u[2];
};

struct S2180 s2180;

int
main (void)
{
  volatile struct S2180 x;

  s2180.u[1] = 3 + 4i;

  x.u[1] = s2180.u[1];

  if (x.u[1] != s2180.u[1])
    abort ();

  return 0;
}