diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-18 13:12:09 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:12 -0300 |
commit | b7169ca7fe92c5874076ff47f9b4ec7954acc480 (patch) | |
tree | 3ff52c75c31e11583fb24a57423638410a1a14ea /tests/libsample | |
parent | 4f782f5d0f97633261690a19de7dfa62eeec2741 (diff) |
Added a test case for a bit-field structure member.
Also moved a couple of tests from samplebindings to otherbindings.
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/abstract.cpp | 1 | ||||
-rw-r--r-- | tests/libsample/abstract.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/libsample/abstract.cpp b/tests/libsample/abstract.cpp index 26c342352..d1ca4f3cf 100644 --- a/tests/libsample/abstract.cpp +++ b/tests/libsample/abstract.cpp @@ -33,6 +33,7 @@ Abstract::Abstract(int id) : m_id(id) primitiveField = 123; valueTypeField = Point(12, 34); objectTypeField = 0; + bitField = 0; } Abstract::~Abstract() diff --git a/tests/libsample/abstract.h b/tests/libsample/abstract.h index 95c1c3a0d..feeec980e 100644 --- a/tests/libsample/abstract.h +++ b/tests/libsample/abstract.h @@ -92,8 +92,10 @@ public: protected: virtual const char* className() { return "Abstract"; } + // Protected bit-field structure member. + unsigned int bitField: 1; + private: int m_id; }; #endif // ABSTRACT_H - |