repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git]
/
test
/
FrontendC++
/
2009-10-27-crash.cpp
blob
da73988b697649c77f7bc4cfe0709174ce211cf6
1
// RUN: %llvmgxx -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
};