xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2006-10-30-ClassBitfield.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -emit-llvm %s -o -
2 // PR954
3 
4 struct _Refcount_Base   {
5   unsigned long _M_ref_count;
6   int _M_ref_count_lock;
_Refcount_Base_Refcount_Base7   _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 
foo(_Rope_RopeRep * r)16 int foo(_Rope_RopeRep* r) { return r->_M_tag; }
17