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++
/
2006-10-30-ClassBitfield.cpp
blob
b3b43fb30ce69558f6224fab799e51dfe797384b
1
// RUN: %llvmgxx %s -S -o -
2
// PR954
3
4
struct
_Refcount_Base
{
5
unsigned long
_M_ref_count
;
6
int
_M_ref_count_lock
;
7
_Refcount_Base
() :
_M_ref_count
(
0
) {}
8
};
9
10
struct
_Rope_RopeRep
:
public
_Refcount_Base
11
{
12
public
:
13
int
_M_tag
:
8
;
14
};
15
16
int
foo
(
_Rope_RopeRep
*
r
) {
return
r
->
_M_tag
; }