Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / struct / wo_prof_local_array.c
blob28d66e4cccf14f86474555ab81b6f5a13ace903a
1 /* { dg-do compile } */
2 /* { dg-do run } */
4 #include <stdlib.h>
5 typedef struct
7 int a;
8 float b;
9 }str_t;
11 #define N 1000
13 int
14 main ()
16 int i;
17 str_t A[N];
19 for (i = 0; i < N; i++)
21 A[i].a = 0;
24 for (i = 0; i < N; i++)
25 if (A[i].a != 0)
26 abort ();
28 return 0;
31 /*--------------------------------------------------------------------------*/
32 /* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" } } */
33 /* { dg-final { cleanup-ipa-dump "*" } } */