libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

abi_for_size.pass.cpp (1033B)


      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // UNSUPPORTED: c++98, c++03, c++11, c++14
     11 
     12 // <experimental/simd>
     13 //
     14 // [simd.traits]
     15 // template <class T, size_t N> struct abi_for_size { using type = see below ;
     16 // }; template <class T, size_t N> using ex::abi_for_size_t = typename
     17 // ex::abi_for_size<T, N>::type;
     18 
     19 #include <cstdint>
     20 #include <experimental/simd>
     21 
     22 namespace ex = std::experimental::parallelism_v2;
     23 
     24 static_assert(std::is_same<typename ex::abi_for_size<int, 4>::type,
     25                            ex::simd_abi::fixed_size<4>>::value,
     26               "");
     27 
     28 static_assert(std::is_same<ex::abi_for_size_t<int, 4>,
     29                            ex::simd_abi::fixed_size<4>>::value,
     30               "");
     31 
     32 int main() {}