repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed some bugs.
[llvm/zpu.git]
/
test
/
FrontendC++
/
2009-10-27-crash.cpp
blob
21d0064c687be7165e1544c79482704e7eaef5bb
1
// RUN: %llvmgxx -emit-llvm -S %s -o /dev/null
2
// Radar 7328944
3
4
typedef
struct
5
{
6
unsigned short
a
:
1
;
7
unsigned short
b
:
2
;
8
unsigned short
c
:
1
;
9
unsigned short
d
:
1
;
10
unsigned short
e
:
1
;
11
unsigned short
f
:
1
;
12
unsigned short
g
:
2
;
13
unsigned short
:
7
;
14
union
15
{
16
struct
17
{
18
unsigned char
h
:
1
;
19
unsigned char
i
:
1
;
20
unsigned char
j
:
1
;
21
unsigned char
:
5
;
22
};
23
struct
24
{
25
unsigned char
k
:
3
;
26
unsigned char
:
5
;
27
};
28
};
29
unsigned char
:
8
;
30
}
tt
;
31
32
typedef
struct
33
{
34
unsigned char
s
;
35
tt t
;
36
unsigned int
u
;
37
}
ttt
;
38
39
ttt X
= {
40
4
,
41
{
0
},
42
55
,
43
};