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

struct s {
    short x;
    short _pad[2];
};

static short mat_a_x;

void transform(const struct s *src, struct s *dst, int n)
{
    int i;

    for (i = 0; i < n; ++i)
	dst[i].x = (src[i].x * mat_a_x) >> 6;
}