|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64236 - sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-07-21 16:07:06
Author: bbartman
Date: 2010-07-21 16:07:05 EDT (Wed, 21 Jul 2010)
New Revision: 64236
URL: http://svn.boost.org/trac/boost/changeset/64236
Log:
working on fixing the pointer member test file to work under 64 bit
Text files modified:
sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/pointer_member_test.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/pointer_member_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/pointer_member_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/pointer_member_test.cpp 2010-07-21 16:07:05 EDT (Wed, 21 Jul 2010)
@@ -23,6 +23,7 @@
flag<b2>
> test_type_3;
+
// This is second half long long
// note this only works on 32 bit systems Need to remove this from the test
// in the event that its being test on a 64 bit architecture
@@ -33,6 +34,7 @@
flag<b1>,
flag<b2>
> test_type_4;
+
typedef bitfield_tuple<
storage<unsigned long long>,
member<int, short, 32>,
@@ -72,7 +74,8 @@
}
// NOTE this test may fail on 64 bit machines but I need to test it
// either way.
- {
+ if(sizeof(void*) == 4) {
+
test_type_3 t3;
int i = 30;
t3.get<rd>() = &i;
@@ -80,7 +83,7 @@
}
// this test will also fail on 64 bit machines.
- {
+ if(sizeof(void*) == 4) {
test_type_4 t4;
int i = 70;
t4.get<rd>() = &i;
@@ -88,7 +91,7 @@
}
// this test will also fail on 64 bit machines.
- {
+ if(sizeof(void*) == 4) {
test_type_5 t5;
int i = 70;
t5.get<rd>() = &i;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk