Lines Matching refs:static_assert
30 static_assert(sizeof(Optional<bool>) == 2, "bad Optional<bool> size"); in TEST()
31 static_assert(std::alignment_of<Optional<bool>>::value == in TEST()
35 static_assert(sizeof(Optional<char>) == 2, "bad Optional<char> size"); in TEST()
36 static_assert(std::alignment_of<Optional<char>>::value == in TEST()
40 static_assert(sizeof(Optional<int16_t>) == 4, "bad Optional<int16_t> size"); in TEST()
41 static_assert(std::alignment_of<Optional<int16_t>>::value == in TEST()
45 static_assert(sizeof(Optional<int32_t>) == 8, "bad Optional<int32_t> size"); in TEST()
46 static_assert(std::alignment_of<Optional<int32_t>>::value == in TEST()
50 static_assert(sizeof(Optional<int64_t>) == 16, in TEST()
52 static_assert(std::alignment_of<Optional<int64_t>>::value == in TEST()
60 static_assert(sizeof(Optional<S128>) == 3*sizeof(int64_t), in TEST()
62 static_assert(std::alignment_of<Optional<S128>>::value == in TEST()
205 static_assert(std::is_same<decltype(o), Optional<int>>::value, in TEST()
212 static_assert(std::is_same<decltype(o), Optional<std::vector<char>>>::value, in TEST()
220 static_assert(std::is_same<decltype(o), Optional<const char*>>::value, in TEST()
227 static_assert(std::is_same<decltype(o), Optional<std::string>>::value, in TEST()
234 static_assert(std::is_same<decltype(o), Optional<std::string>>::value, in TEST()
241 static_assert(std::is_same<decltype(o), Optional<std::string>>::value, in TEST()