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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [struct/] [wo_prof_escape_str_init.c] - Blame information for rev 338

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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