Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62748 - in sandbox/SOC/2010/bit_masks/lib/integer/test: . bft_testing/compile_pass
From: bbartmanboost_at_[hidden]
Date: 2010-06-10 12:31:56


Author: bbartman
Date: 2010-06-10 12:31:53 EDT (Thu, 10 Jun 2010)
New Revision: 62748
URL: http://svn.boost.org/trac/boost/changeset/62748

Log:
Added new compile tests for making sure that courner cases don't cause preconditions to fire
Added:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_pass/bft_member_max_out.cpp (contents, props changed)
Text files modified:
   sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/Jamfile.v2 2010-06-10 12:31:53 EDT (Thu, 10 Jun 2010)
@@ -29,6 +29,7 @@
         [ compile-fail bft_testing/compile_fail/bft_no_storage_type.cpp ]
         [ compile-fail bft_testing/compile_fail/non_pod_storage_type.cpp ]
         [ compile-fail bft_testing/compile_fail/bft_storage_width_acceded.cpp ]
+ [ compile bft_testing/compile_pass/bft_member_max_out.cpp ]
         [ run bitfield_tuple_test.cpp ]
     ;
 

Added: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_pass/bft_member_max_out.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_pass/bft_member_max_out.cpp 2010-06-10 12:31:53 EDT (Thu, 10 Jun 2010)
@@ -0,0 +1,28 @@
+// Copyright 2010 Brian Bartman.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#include <iostream>
+#include <boost/integer/bitfield_tuple.hpp>
+
+using namespace boost;
+struct red { };
+
+// this needs to pass because its a basic declaration and I should asume people
+// arn't going to be all that happy if things don't work the way the should
+
+// goal of this test is to max out all bits in side of storage using multiple
+// members to make sure that if someone wants to do that they can.
+typedef bitfield_tuple<
+ storage<int>,
+ member<int, red, 15u>,
+ member<int, red, 17u>
+> bft;
+
+
+
+int main() {
+ bft();
+ return 0;
+}


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