wo_prof_escape_substr_value.c: Limit allocation based on STACK_SIZE.
[gcc.git] / gcc / testsuite / gcc.dg / struct / w_prof_global_array.c
1 #include <stdlib.h>
2 typedef struct
3 {
4 int a;
5 float b;
6 }str_t;
7
8 #define N 1000
9 str_t A[N];
10
11 int
12 main ()
13 {
14 int i;
15
16 for (i = 0; i < N; i++)
17 {
18 A[i].a = 0;
19 }
20
21 for (i = 0; i < N; i++)
22 if (A[i].a != 0)
23 abort ();
24
25 return 0;
26 }
27
28 /*--------------------------------------------------------------------------*/
29 /* { dg-final-use { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" } } */
30 /* { dg-final-use { cleanup-ipa-dump "*" } } */