repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
FrontendC
/
2007-10-01-BuildArrayRef.c
blob
e9037552308a20ec64d3bedbf201134ff639654a
1
// RUN: not %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
2
// PR 1603
3
int
func
()
4
{
5
const int
*
arr
;
6
arr
[
0
] =
1
;
7
}
8