URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
#include
|
#include
|
|
|
#ifdef __LP64__
|
#ifdef __LP64__
|
#define DIM UINT_MAX>>1
|
#define DIM UINT_MAX>>1
|
#else
|
#else
|
#define DIM USHRT_MAX>>1
|
#define DIM USHRT_MAX>>1
|
#endif
|
#endif
|
|
|
int
|
int
|
sub (int *a)
|
sub (int *a)
|
{
|
{
|
return a[0];
|
return a[0];
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
int a[DIM][DIM]; /* { dg-error "size of array 'a' is too large" } */
|
int a[DIM][DIM]; /* { dg-error "size of array 'a' is too large" } */
|
return sub (&a[0][0]); /* { dg-error "declared" } */
|
return sub (&a[0][0]); /* { dg-error "declared" } */
|
}
|
}
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.