Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / struct / wo_prof_escape_substr_array.c
blob55a644e197172e63342eac5be54b3db1d077bf54
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 typedef struct
15 str_t A[N];
16 int c;
17 }str_with_substr_t;
19 str_with_substr_t a;
21 int
22 main ()
24 int i;
26 for (i = 0; i < N; i++)
27 a.A[i].b = 0;
29 return 0;
32 /*--------------------------------------------------------------------------*/
33 /* { dg-final { scan-ipa-dump "is a field in the structure" "ipa_struct_reorg" } } */
34 /* { dg-final { cleanup-ipa-dump "*" } } */