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/] [wo_prof_array_field.c] - Blame information for rev 298

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 basic
6
{
7
  int a;
8
  int b[10];
9
} type_struct;
10
 
11
type_struct *str1;
12
 
13
int main()
14
{
15
  int i;
16
 
17
  str1 = malloc (10 * sizeof (type_struct));
18
 
19
  for (i=0; i<=9; i++)
20
    str1[i].a = str1[i].b[0];
21
 
22
  return 0;
23
}
24
 
25
/*--------------------------------------------------------------------------*/
26
/* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail { "avr-*-*" } } } } */
27
/* { dg-final { cleanup-ipa-dump "*" } } */

powered by: WebSVN 2.1.0

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