Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / struct / wo_prof_array_field.c
blob1c41de5bc3c64c70d11e48ae150ef5e4b4200815
1 /* { dg-do compile } */
2 /* { dg-do run } */
4 #include <stdlib.h>
5 typedef struct basic
7 int a;
8 int b[10];
9 } type_struct;
11 type_struct *str1;
13 int main()
15 int i;
17 str1 = malloc (10 * sizeof (type_struct));
19 for (i=0; i<=9; i++)
20 str1[i].a = str1[i].b[0];
22 return 0;
25 /*--------------------------------------------------------------------------*/
26 /* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" } } */
27 /* { dg-final { cleanup-ipa-dump "*" } } */