repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed some bugs.
[llvm/zpu.git]
/
test
/
FrontendC
/
crash-invalid-array.c
blob
d602f7854585bc909d31c61d5cc517398d6f8d01
1
// RUN: not %llvmgcc -O1 %s -S |& grep {error: invalid use of array with unspecified bounds}
2
// PR6913
3
4
#include <stdio.h>
5
6
int
main
()
7
{
8
int
x
[
10
][
10
];
9
int
(*
p
)[] =
x
;
// <-- this line is what triggered it
10
11
int
i
;
12
13
for
(
i
=
0
;
i
<
10
; ++
i
)
14
{
15
p
[
i
][
i
] =
i
;
16
}
17
}