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
/
2002-07-30-UnionTest.c
blob
c931b8024f0c6a55cbf81542308f2a5868f0bd5b
1
// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
2
3
union
X
;
4
struct
Empty
{};
5
union
F
{};
6
union
Q
{
union
Q
*
X
; };
7
union
X
{
8
char
C
;
9
int
A
,
Z
;
10
long long
B
;
11
void
*
b1
;
12
struct
{
int
A
;
long long
Z
; }
Q
;
13
};
14
15
union
X
foo
(
union
X A
) {
16
A
.
C
=
123
;
17
A
.
A
=
39249
;
18
//A.B = (void*)123040123321;
19
A
.
B
=
12301230123123LL
;
20
A
.
Z
=
1
;
21
return
A
;
22
}