OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [struct/] [w_prof_global_array.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
#include <stdlib.h>
2
typedef struct
3
{
4
  int a;
5
  float b;
6
}str_t;
7
 
8
#define N 1000
9
str_t A[N];
10
 
11
int
12
main ()
13
{
14
  int i;
15
 
16
  for (i = 0; i < N; i++)
17
    {
18
      A[i].a = 0;
19
    }
20
 
21
  for (i = 0; i < N; i++)
22
    if (A[i].a != 0)
23
      abort ();
24
 
25
  return 0;
26
}
27
 
28
/*--------------------------------------------------------------------------*/
29
/* { dg-final-use { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" } } */
30
/* { dg-final-use { cleanup-ipa-dump "*" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.