wo_prof_escape_substr_value.c: Limit allocation based on STACK_SIZE.
[gcc.git] / gcc / testsuite / gcc.dg / struct / wo_prof_single_str_local.c
1 /* { dg-do compile } */
2 /* { dg-do run } */
3
4 #include <stdlib.h>
5 typedef struct
6 {
7 int a;
8 int b;
9 }str_t;
10
11 #define N 3
12
13 int
14 main ()
15 {
16 int i;
17 int res = 1<<(1<<N);
18 str_t str;
19
20 str.a = 2;
21
22 for (i = 0; i < N; i++)
23 str.a = str.a * str.a;
24
25 if (str.a != res)
26 abort ();
27
28 return str.a;
29 }
30
31 /*--------------------------------------------------------------------------*/
32 /* { dg-final { scan-ipa-dump "No structures to transform" "ipa_struct_reorg" { xfail { "avr-*-*" } } } } */
33 /* { dg-final { cleanup-ipa-dump "*" } } */