Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / struct / w_prof_single_str_global.c
blobb020239910434fbe826908ff3f83b24a09640072
1 #include <stdlib.h>
2 typedef struct
4 int a;
5 int b;
6 }str_t;
8 #define N 3
10 str_t str;
12 int
13 main ()
15 int i;
16 int res = 1<<(1<<N);
17 str.a = 2;
19 for (i = 0; i < N; i++)
20 str.a = str.a * str.a;
22 if (str.a != res)
23 abort ();
25 /* POSIX ignores all but the 8 low-order bits, but other
26 environments may not. */
27 return (str.a & 255);
30 /*--------------------------------------------------------------------------*/
31 /* { dg-final-use { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail *-*-* } } } */
32 /* { dg-final-use { cleanup-ipa-dump "*" } } */