1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - 2*f4a2713aSLionel Sambuc // PR954 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc struct _Refcount_Base { 5*f4a2713aSLionel Sambuc unsigned long _M_ref_count; 6*f4a2713aSLionel Sambuc int _M_ref_count_lock; _Refcount_Base_Refcount_Base7*f4a2713aSLionel Sambuc _Refcount_Base() : _M_ref_count(0) {} 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc struct _Rope_RopeRep : public _Refcount_Base 11*f4a2713aSLionel Sambuc { 12*f4a2713aSLionel Sambuc public: 13*f4a2713aSLionel Sambuc int _M_tag:8; 14*f4a2713aSLionel Sambuc }; 15*f4a2713aSLionel Sambuc foo(_Rope_RopeRep * r)16*f4a2713aSLionel Sambucint foo(_Rope_RopeRep* r) { return r->_M_tag; } 17