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_double_malloc.c] - Blame information for rev 319

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