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
slightly increase prettiness.
[llvm/avr.git]
/
test
/
FrontendC
/
2009-03-08-ZeroEltStructCrash.c
blob
454e0fb79c68cbdda8f5b7429809e6b3685b3f17
1
// RUN: %llvmgcc -S %s -o -
2
// PR3744
3
struct
Empty
{};
4
struct
Union
{
5
union
{
6
int
zero_arr
[
0
];
7
}
contents
;
8
};
9
static
inline
void
Foo
(
struct
Union
*
u
) {
10
int
*
array
=
u
->
contents
.
zero_arr
;
11
}
12
static void
Bar
(
struct
Union
*
u
) {
13
Foo
(
u
);
14
}