Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / struct / wo_prof_local_array.c
blob18d5a734740e713be2503085bb04cbaff0d934d5
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 #ifdef STACK_SIZE
12 #if STACK_SIZE > 8000
13 #define N 1000
14 #else
15 #define N (STACK_SIZE/8)
16 #endif
17 #else
18 #define N 1000
19 #endif
21 int
22 main ()
24 int i;
25 str_t A[N];
27 for (i = 0; i < N; i++)
29 A[i].a = 0;
32 for (i = 0; i < N; i++)
33 if (A[i].a != 0)
34 abort ();
36 return 0;
39 /*--------------------------------------------------------------------------*/
40 /* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail *-*-* } } } */
41 /* { dg-final { cleanup-ipa-dump "*" } } */