blob: 6da3420f6e88ac1e29a13d6ca13ecdce004badb7 (
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
28
29
30
31
32
33
|
/* { dg-do compile } */
/* { dg-do run } */
#include <stdlib.h>
typedef struct
{
int a;
int b;
}str_t;
#define N 2
str_t A[2] = {{1,1},{2,2}};
int
main ()
{
int i;
for (i = 0; i < N; i++)
A[i].b = A[i].a;
for (i = 0; i < N; i++)
if (A[i].b != A[i].a)
abort ();
return 0;
}
/*--------------------------------------------------------------------------*/
/* { dg-final { scan-ipa-dump "is initialized...Excluded" "ipa_struct_reorg" { xfail *-*-* } } } */
/* { dg-final { cleanup-ipa-dump "*" } } */
|