URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
#include <limits.h>
|
#include <limits.h>
|
|
|
#if defined(__LP64__) || defined(_WIN64)
|
#if defined(__LP64__) || defined(_WIN64)
|
#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]);
|
return sub (&a[0][0]);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.