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