]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/qvm/test/swizzle4_test3.cpp
1 // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifdef BOOST_QVM_TEST_SINGLE_HEADER
7 # include BOOST_QVM_TEST_SINGLE_HEADER
8 # ifdef BOOST_QVM_TEST_SINGLE_HEADER_SWIZZLE
9 # include BOOST_QVM_TEST_SINGLE_HEADER_SWIZZLE
12 # include <boost/qvm/vec_traits.hpp>
13 # include <boost/qvm/swizzle4.hpp>
16 #include <boost/core/lightweight_test.hpp>
18 template <int D
> struct my_vec
{ };
39 vec_traits
< my_vec
<D
> >
41 typedef int scalar_type
;
42 static int const dim
=D
;
43 template <int I
> static int read_element( my_vec
<D
> const & );
44 template <int I
> static int & write_element( my_vec
<D
> & );
52 using namespace boost::qvm
;
55 BOOST_TEST(called
==1);
56 return boost::report_errors();