[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2006-10-30-ClassBitfield.cpp
Chris Lattner
sabre at nondot.org
Mon Oct 30 22:15:28 PST 2006
Changes in directory llvm/test/Regression/C++Frontend:
2006-10-30-ClassBitfield.cpp added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+16 -0)
2006-10-30-ClassBitfield.cpp | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm/test/Regression/C++Frontend/2006-10-30-ClassBitfield.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2006-10-30-ClassBitfield.cpp:1.1
*** /dev/null Tue Oct 31 00:15:24 2006
--- llvm/test/Regression/C++Frontend/2006-10-30-ClassBitfield.cpp Tue Oct 31 00:15:14 2006
***************
*** 0 ****
--- 1,16 ----
+ // RUN: %llvmgxx %s -emit-llvm -S -o -
+ // PR954
+
+ struct _Refcount_Base {
+ unsigned long _M_ref_count;
+ int _M_ref_count_lock;
+ _Refcount_Base() : _M_ref_count(0) {}
+ };
+
+ struct _Rope_RopeRep : public _Refcount_Base
+ {
+ public:
+ int _M_tag:8;
+ };
+
+ int foo(_Rope_RopeRep* r) { return r->_M_tag; }
More information about the llvm-commits
mailing list