wo_prof_escape_substr_value.c: Limit allocation based on STACK_SIZE.
[gcc.git] / gcc / testsuite / gcc.dg / struct / wo_prof_array_field.c
1 /* { dg-do compile } */
2 /* { dg-do run } */
3
4 #include <stdlib.h>
5 typedef struct basic
6 {
7 int a;
8 int b[10];
9 } type_struct;
10
11 type_struct *str1;
12
13 int main()
14 {
15 int i;
16
17 str1 = malloc (10 * sizeof (type_struct));
18
19 for (i=0; i<=9; i++)
20 str1[i].a = str1[i].b[0];
21
22 return 0;
23 }
24
25 /*--------------------------------------------------------------------------*/
26 /* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail { "avr-*-*" } } } } */
27 /* { dg-final { cleanup-ipa-dump "*" } } */