URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
|
|
#include <stdlib.h>
|
#include <stdlib.h>
|
typedef struct
|
typedef struct
|
{
|
{
|
int a;
|
int a;
|
float b;
|
float b;
|
}str_t;
|
}str_t;
|
|
|
#define N 1000
|
#define N 1000
|
|
|
typedef struct
|
typedef struct
|
{
|
{
|
str_t A[N];
|
str_t A[N];
|
int c;
|
int c;
|
}str_with_substr_t;
|
}str_with_substr_t;
|
|
|
str_with_substr_t a;
|
str_with_substr_t a;
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
int i;
|
int i;
|
|
|
for (i = 0; i < N; i++)
|
for (i = 0; i < N; i++)
|
a.A[i].b = 0;
|
a.A[i].b = 0;
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
/* { dg-final { scan-ipa-dump "is a field in the structure" "ipa_struct_reorg" } } */
|
/* { dg-final { scan-ipa-dump "is a field in the structure" "ipa_struct_reorg" } } */
|
/* { dg-final { cleanup-ipa-dump "*" } } */
|
/* { dg-final { cleanup-ipa-dump "*" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.