Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64256 - sandbox/SOC/2010/quasi_random/libs/random/test
From: jvd_at_[hidden]
Date: 2010-07-22 07:10:57


Author: qrng
Date: 2010-07-22 07:10:56 EDT (Thu, 22 Jul 2010)
New Revision: 64256
URL: http://svn.boost.org/trac/boost/changeset/64256

Log:
Added trivial compile tests. A compilation unit has to be well formed if a header is #included on its own.

Added:
   sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_faure.cpp (contents, props changed)
   sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_niederreiter_base2.cpp (contents, props changed)
   sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_sobol.cpp (contents, props changed)

Added: sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_faure.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_faure.cpp 2010-07-22 07:10:56 EDT (Thu, 22 Jul 2010)
@@ -0,0 +1,15 @@
+// Copyright Justinas Vygintas Daugmaudis, 2010.
+// Use, modification and distribution is subject to the
+// Boost Software License, Version 1.0. (See accompanying
+// file LICENSE-1.0 or http://www.boost.org/LICENSE-1.0)
+
+#include <boost/random/faure.hpp>
+
+namespace {
+
+void instantiate()
+{
+ boost::faure_1d t;
+}
+
+}

Added: sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_niederreiter_base2.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_niederreiter_base2.cpp 2010-07-22 07:10:56 EDT (Thu, 22 Jul 2010)
@@ -0,0 +1,15 @@
+// Copyright Justinas Vygintas Daugmaudis, 2010.
+// Use, modification and distribution is subject to the
+// Boost Software License, Version 1.0. (See accompanying
+// file LICENSE-1.0 or http://www.boost.org/LICENSE-1.0)
+
+#include <boost/random/niederreiter_base2.hpp>
+
+namespace {
+
+void instantiate()
+{
+ boost::niederreiter_base2_1d t;
+}
+
+}

Added: sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_sobol.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/quasi_random/libs/random/test/compile_test_sobol.cpp 2010-07-22 07:10:56 EDT (Thu, 22 Jul 2010)
@@ -0,0 +1,15 @@
+// Copyright Justinas Vygintas Daugmaudis, 2010.
+// Use, modification and distribution is subject to the
+// Boost Software License, Version 1.0. (See accompanying
+// file LICENSE-1.0 or http://www.boost.org/LICENSE-1.0)
+
+#include <boost/random/sobol.hpp>
+
+namespace {
+
+void instantiate()
+{
+ boost::sobol_1d t;
+}
+
+}


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