111
|
1 /* { dg-do compile } */
|
|
2
|
|
3 #define N 16
|
|
4
|
|
5 struct
|
|
6 {
|
|
7 unsigned int x;
|
|
8 unsigned int y;
|
|
9 } pS [100];
|
|
10
|
|
11 void
|
|
12 main1 ()
|
|
13 {
|
|
14 int i, j;
|
|
15 unsigned int ub[N] =
|
|
16 { 1, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45 };
|
|
17 unsigned int uc[N] =
|
|
18 { 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
|
|
19 unsigned int udiffx, udiffy;
|
|
20
|
|
21 for (i = 0; i < N; i++)
|
|
22 {
|
|
23 pS[i].x = 0;
|
|
24 pS[i].y = 0;
|
|
25 for (j = 0; j < N; j++)
|
|
26 {
|
|
27 udiffx = (ub[j] - uc[j]);
|
|
28 udiffy = (ub[j] - uc[j]);
|
|
29 pS[i].x = udiffx;
|
|
30 pS[i].y = udiffy;
|
|
31 }
|
|
32 }
|
|
33 }
|
|
34
|