OSDN Git Service

2010-03-23 Rafael Ávila de Espíndola <respindola@mozilla.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / struct / wo_prof_escape_substr_array.c
1 /* { dg-do compile } */
2 /* { dg-do run } */
3
4 #include <stdlib.h>
5 typedef struct
6 {
7   int a;
8   float b;
9 }str_t;
10
11 #define N 1000
12
13 typedef struct 
14 {
15   str_t A[N];
16   int c;
17 }str_with_substr_t;
18
19 str_with_substr_t a;
20
21 int
22 main ()
23 {
24   int i;
25   
26   for (i = 0; i < N; i++)
27     a.A[i].b = 0;
28
29   return 0;
30 }
31
32 /*--------------------------------------------------------------------------*/
33 /* { dg-final { scan-ipa-dump "is a field in the structure" "ipa_struct_reorg" { xfail *-*-* } } } */
34 /* { dg-final { cleanup-ipa-dump "*" } } */