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-14-BitFieldOffset.cpp
blob
522e20a478dfbfd271eb2fd1e52790d6246fc1c3
1
// RUN: %llvmgxx %s -S -o - | not grep {i32 6}
2
3
struct
QVectorTypedData
{
4
int
size
;
5
unsigned int
sharable
:
1
;
6
unsigned short
array
[
1
];
7
};
8
9
void
foo
(
QVectorTypedData
*
X
) {
10
X
->
array
[
0
] =
123
;
11
}