Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / struct / w_prof_local_var.c
blob91d580fda69ad3b7a5ee8cbcb827fadb26d45c20
1 #include <stdlib.h>
2 typedef struct
4 int a;
5 float b;
6 }str_t;
8 #define N 1000
10 int
11 main ()
13 int i, sum;
15 str_t * p = malloc (N * sizeof (str_t));
16 for (i = 0; i < N; i++)
17 p[i].a = p[i].b + 1;
19 for (i = 0; i < N; i++)
20 if (p[i].a != p[i].b + 1)
21 abort ();
23 return 0;
26 /*--------------------------------------------------------------------------*/
27 /* { dg-final-use { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" } } */
28 /* { dg-final-use { cleanup-ipa-dump "*" } } */