Ticket #4440: test_boost_ublas_size_0.cpp

File test_boost_ublas_size_0.cpp, 638 bytes (added by jesseperla@…, 12 years ago)
Line 
1/*
2 * $Rev: 5266 $
3 * Author: Jesse Perla (c) 2010
4 * Use, modification and distribution are subject to the
5 * Boost Software License, Version 1.0. (See accompanying file
6 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7*/
8
9#define BOOST_TEST_MODULE test_boost_ublas_patches
10#include <boost/numeric/ublas/vector.hpp>
11#include <boost/test/unit_test.hpp>
12
13using namespace boost::numeric::ublas;
14
15BOOST_AUTO_TEST_CASE( test_size_0_bounded_vector )
16{
17 //Creating a zero size array. This failed on MSVC since it uses a zero-sized array, which is apparently non-standard.
18 bounded_vector<double, 0> v;
19}