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++
/
2005-02-20-BrokenReferenceTest.cpp
blob
31026d30e90c7fe2e2f9fae7cf70800511a5065b
1
// RUN: %llvmgxx %s -S -o /dev/null
2
3
void
test
(
unsigned char
*
b
,
int
rb
) {
4
typedef
unsigned char
imgfoo
[
10
][
rb
];
5
imgfoo
&
br
= *(
imgfoo
*)
b
;
6
7
br
[
0
][
0
] =
1
;
8
9
rb
=
br
[
0
][
0
];
10
}
11