repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
large-size-array-3.c
blob
ea13b933ae53aabe012ca3e3bffb63c94ea1e052
1
/* { dg-do compile } */
2
#include <limits.h>
3
4
#if defined(__LP64__) || defined(_WIN64)
5
#define DIM (UINT_MAX>>1)+1
6
#else
7
#define DIM 65536
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
}