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