OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [large-size-array.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
#include <limits.h>
3
 
4
#if defined(__LP64__) || defined(_WIN64)
5
#define DIM UINT_MAX>>1
6
#else
7
#define DIM USHRT_MAX>>1
8
#endif
9
 
10
int
11
sub (int *a)
12
{
13
  return a[0];
14
}
15
 
16
int
17
main (void)
18
{
19
  int a[DIM][DIM];  /* { dg-error "size of array 'a' is too large" } */
20
  return sub (&a[0][0]);
21
}

powered by: WebSVN 2.1.0

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